mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 09:55:34 -05:00
Compare commits
63 commits
b329f70faa
...
0677cc7f6d
Author | SHA1 | Date | |
---|---|---|---|
|
0677cc7f6d | ||
|
a31c68f178 | ||
|
6e2b08a2e2 | ||
|
ebd65401cb | ||
|
82668ee06c | ||
|
3704aa3009 | ||
|
deb379d760 | ||
|
28cceb16e5 | ||
|
7aac501905 | ||
|
edb0fd5b85 | ||
|
ec0fc78767 | ||
|
6fe0582fdf | ||
|
97b6a68b7d | ||
|
90676409ab | ||
|
4788df91da | ||
|
08463f2d0b | ||
|
a743d02bbc | ||
|
17e666b92d | ||
|
ac137d84c9 | ||
|
cd2fcdc078 | ||
|
4dc5ba07d0 | ||
|
807da4754f | ||
|
227ab28912 | ||
|
826054fa64 | ||
|
93793ac816 | ||
|
0005f4ed66 | ||
|
0fdc519c51 | ||
|
78e78e4c74 | ||
|
13b30ffbaf | ||
|
306a35f86d | ||
|
04ed383f95 | ||
|
37590e957f | ||
|
1d8a64f77e | ||
|
df0684aeb9 | ||
|
b2dcbe73bd | ||
|
2d13305dc5 | ||
|
08ccb5422b | ||
|
5eedc99b4f | ||
|
57e9e7f627 | ||
|
0bb056d08e | ||
|
193899bf3d | ||
|
e6fedb0be0 | ||
|
c5b1ba3af5 | ||
|
a4197cdf80 | ||
|
4643044ff3 | ||
|
b774debf1e | ||
|
913cdaa9d5 | ||
|
b4c9b62e32 | ||
|
3ac48d2c27 | ||
|
8d741e534e | ||
|
c0edf946ef | ||
|
21a5b21009 | ||
|
432fef707b | ||
|
48bd891398 | ||
|
3b8e14eaf7 | ||
|
05ab42c9b6 | ||
|
5b523aa2e1 | ||
|
36af716e36 | ||
|
41ecd8e892 | ||
|
2eca9dea9b | ||
|
6117ab36b3 | ||
|
65d0528729 | ||
|
62d37f52cb |
2 changed files with 29 additions and 22 deletions
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
|
@ -154,23 +154,20 @@ jobs:
|
|||
has-sccache: ${{ inputs.use-ccache }}
|
||||
if: inputs.build-debug-info
|
||||
|
||||
- name: Setup caches
|
||||
uses: ./.github/actions/setup-cache
|
||||
with:
|
||||
host: mac
|
||||
target: mac
|
||||
use-ccache: ${{ github.event_name != 'workflow_dispatch' || inputs.use-ccache }}
|
||||
# due to very strange performance issues, sccache is currently disabled for macos. sorry
|
||||
|
||||
# - name: Setup caches
|
||||
# uses: ./.github/actions/setup-cache
|
||||
# with:
|
||||
# host: mac
|
||||
# target: mac
|
||||
# use-ccache: ${{ github.event_name != 'workflow_dispatch' || inputs.use-ccache }}
|
||||
|
||||
- name: Setup Ninja
|
||||
uses: ./.github/actions/setup-ninja
|
||||
with:
|
||||
host: mac
|
||||
|
||||
- name: Install LLVM
|
||||
run: |
|
||||
brew install llvm
|
||||
echo "/opt/homebrew/opt/llvm/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Setup CLI
|
||||
uses: geode-sdk/cli/.github/actions/setup@main
|
||||
|
||||
|
@ -180,9 +177,8 @@ jobs:
|
|||
-DCMAKE_C_COMPILER=clang
|
||||
-DCMAKE_CXX_COMPILER=clang++
|
||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15
|
||||
-DCMAKE_AR='/usr/bin/ar'
|
||||
-DCMAKE_RANLIB='/usr/bin/ranlib'
|
||||
-DGEODE_DISABLE_PRECOMPILED_HEADERS=Off
|
||||
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
|
||||
-DGEODE_DISABLE_PRECOMPILED_HEADERS=OFF
|
||||
${{ steps.build-debug-info.outputs.extra-configure }}
|
||||
|
||||
- name: Build
|
||||
|
|
|
@ -132,19 +132,30 @@ 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")
|
||||
message(NOTICE "Using ${GEODE_CCACHE_VARIANT} with ${CMAKE_CXX_COMPILER_ID}, PCH will be enabled.")
|
||||
set(GEODE_DISABLE_PRECOMPILED_HEADERS OFF)
|
||||
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"))
|
||||
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()
|
||||
message(NOTICE "Using ${GEODE_CCACHE_VARIANT} with ${CMAKE_CXX_COMPILER_ID}, PCH will be enabled.")
|
||||
set(GEODE_DISABLE_PRECOMPILED_HEADERS OFF)
|
||||
endif()
|
||||
else()
|
||||
message(NOTICE "Using ${GEODE_CCACHE_VARIANT} with ${CMAKE_CXX_COMPILER_ID}, PCH will be disabled.")
|
||||
set(GEODE_DISABLE_PRECOMPILED_HEADERS ON)
|
||||
endif()
|
||||
endif()
|
||||
else()
|
||||
message(NOTICE "Not using a caching compiler (ccache/sccache). "
|
||||
"It is recommended to install one to improve build times.")
|
||||
message(NOTICE "We recommend sccache, check its README for installation instructions, "
|
||||
"normally you can just use your usual package manager (e.g. 'scoop install sccache').")
|
||||
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()
|
||||
message(NOTICE "Not using a caching compiler (ccache/sccache). "
|
||||
"It is recommended to install one to improve build times.")
|
||||
message(NOTICE "We recommend sccache, check its README for installation instructions, "
|
||||
"normally you can just use your usual package manager (e.g. 'scoop install sccache').")
|
||||
endif()
|
||||
|
||||
if (NOT DEFINED GEODE_DISABLE_PRECOMPILED_HEADERS)
|
||||
message(NOTICE "Because of this, PCH will be enabled.")
|
||||
set(GEODE_DISABLE_PRECOMPILED_HEADERS OFF)
|
||||
|
@ -243,7 +254,7 @@ if (DEFINED GEODE_TULIPHOOK_REPO_PATH)
|
|||
message(STATUS "Using ${GEODE_TULIPHOOK_REPO_PATH} for TulipHook")
|
||||
add_subdirectory(${GEODE_TULIPHOOK_REPO_PATH} ${GEODE_TULIPHOOK_REPO_PATH}/build)
|
||||
else()
|
||||
CPMAddPackage("gh:geode-sdk/TulipHook#fbf79b4")
|
||||
CPMAddPackage("gh:geode-sdk/TulipHook#c8a445c")
|
||||
endif()
|
||||
set(CMAKE_WARN_DEPRECATED ON CACHE BOOL "" FORCE)
|
||||
|
||||
|
|
Loading…
Reference in a new issue