mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
i don't get it
This commit is contained in:
parent
ec0fc78767
commit
edb0fd5b85
2 changed files with 3 additions and 2 deletions
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
|
@ -181,6 +181,7 @@ jobs:
|
|||
-DCMAKE_C_COMPILER=clang
|
||||
-DCMAKE_CXX_COMPILER=clang++
|
||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15
|
||||
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
|
||||
-DCMAKE_AR='/usr/bin/ar'
|
||||
-DCMAKE_RANLIB='/usr/bin/ranlib'
|
||||
-DGEODE_DISABLE_PRECOMPILED_HEADERS=OFF
|
||||
|
|
|
@ -133,7 +133,7 @@ endif()
|
|||
if (DEFINED GEODE_CCACHE_VARIANT)
|
||||
if (NOT DEFINED GEODE_DISABLE_PRECOMPILED_HEADERS)
|
||||
if (${GEODE_CCACHE_VARIANT} STREQUAL "sccache" AND (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang"))
|
||||
if (DEFINED CMAKE_OSX_ARCHITECTURES AND CMAKE_OSX_ARCHITECTURES STREQUAL "arm64;x86_64" OR CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64;arm64")
|
||||
if (DEFINED CMAKE_OSX_ARCHITECTURES AND (CMAKE_OSX_ARCHITECTURES STREQUAL "arm64;x86_64" OR CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64;arm64"))
|
||||
message(NOTICE "Using ${GEODE_CCACHE_VARIANT} with ${CMAKE_CXX_COMPILER_ID} while building multiple architectures, PCH will be disabled due to issues with sccache.")
|
||||
set(GEODE_DISABLE_PRECOMPILED_HEADERS ON)
|
||||
else()
|
||||
|
@ -146,7 +146,7 @@ if (DEFINED GEODE_CCACHE_VARIANT)
|
|||
endif()
|
||||
endif()
|
||||
else()
|
||||
if (DEFINED CMAKE_OSX_ARCHITECTURES AND CMAKE_OSX_ARCHITECTURES STREQUAL "arm64;x86_64" OR CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64;arm64")
|
||||
if (DEFINED CMAKE_OSX_ARCHITECTURES AND (CMAKE_OSX_ARCHITECTURES STREQUAL "arm64;x86_64" OR CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64;arm64"))
|
||||
# when building for multiple architectures, a caching compiler is not recommended
|
||||
message(NOTICE "Not using a caching compiler (ccache/sccache).")
|
||||
else()
|
||||
|
|
Loading…
Reference in a new issue