Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/geode-sdk/geode into main
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Aug 2, 2023
2 parents 0a6d31e + 25d9ab0 commit b2d6771
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
os: windows-latest
id: win
extra_flags: >
-DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl
-DCMAKE_C_COMPILER=%VCINSTALLDIR%\Tools\Llvm\bin\clang-cl.exe
-DCMAKE_CXX_COMPILER=%VCINSTALLDIR%\Tools\Llvm\bin\clang-cl.exe
-G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DGEODE_DEBUG=On
cli_cmd: ''
package_cmd: 'makensis -WX -V3 ./installer/windows/installer.nsi'
Expand Down Expand Up @@ -60,11 +61,6 @@ jobs:
arch: amd64_x86
if: matrix.config.id == 'win'

- name: Install ninja
shell: bash
run: choco install ninja
if: matrix.config.id == 'win'

- name: Download CLI
uses: robinraju/release-downloader@v1.8
with:
Expand Down
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,12 @@ set(CMAKE_WARN_DEPRECATED ON CACHE BOOL "" FORCE)
include(CheckCXXCompilerFlag)
check_cxx_compiler_flag(-Wno-everything SUPPORTS_W_NO_EVERYTHING)
if (SUPPORTS_W_NO_EVERYTHING)
target_compile_options(capstone-static PRIVATE -Wno-everything)
target_compile_options(keystone PRIVATE -Wno-everything)
if (TARGET capstone-static)
target_compile_options(capstone-static PRIVATE -Wno-everything)
endif()
if (TARGET keystone)
target_compile_options(keystone PRIVATE -Wno-everything)
endif()
endif()

target_sources(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/entry.cpp)
Expand Down
12 changes: 9 additions & 3 deletions loader/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,15 @@ if (NOT GEODE_BUILDING_DOCS)
include(CheckCXXCompilerFlag)
check_cxx_compiler_flag(-Wno-everything SUPPORTS_W_NO_EVERYTHING)
if (SUPPORTS_W_NO_EVERYTHING)
target_compile_options(md4c PRIVATE -Wno-everything)
target_compile_options(zlib PRIVATE -Wno-everything)
target_compile_options(zlibstatic PRIVATE -Wno-everything)
if (TARGET md4c)
target_compile_options(md4c PRIVATE -Wno-everything)
endif()
if (TARGET zlib)
target_compile_options(zlib PRIVATE -Wno-everything)
endif()
if (TARGET zlibstatic)
target_compile_options(zlibstatic PRIVATE -Wno-everything)
endif()
endif()

# Regex support
Expand Down

0 comments on commit b2d6771

Please sign in to comment.