mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-08 10:59:36 +00:00
Pass convenience options to Make invoked via CMake
Can't pass them to plain Make invocations, because we try to be compatible with macOS' old Make.
This commit is contained in:
@@ -61,7 +61,7 @@ jobs:
|
||||
- name: Build binaries
|
||||
run: |
|
||||
cmake -S . -B build --preset macos-static -DFETCHCONTENT_BASE_DIR="${{ env.DEPS_ROOT_DIR }}"
|
||||
cmake --build build
|
||||
cmake --build build -- --output-sync --keep-going
|
||||
strip rgb{asm,link,fix,gfx}
|
||||
env:
|
||||
LDFLAGS: -fuse-ld=lld # cmake/macos-static.cmake comments explain why we use lld.
|
||||
|
||||
@@ -64,7 +64,7 @@ jobs:
|
||||
# better applied here than in our CMakeLists, where it could affect and break someone else.
|
||||
run: |
|
||||
cmake -S . -B build --preset develop -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_CXX_COMPILER=${{ matrix.cxx }} -DTESTS_OS_NAME=${{ matrix.os }}
|
||||
cmake --build build --verbose
|
||||
cmake --build build --verbose -- --output-sync --keep-going
|
||||
sudo cmake --install build --verbose
|
||||
- name: Package binaries
|
||||
run: |
|
||||
@@ -123,7 +123,7 @@ jobs:
|
||||
- name: Build & install
|
||||
run: |
|
||||
cmake -S . -B build --preset macos-static -DFETCHCONTENT_BASE_DIR="${{ env.DEPS_ROOT_DIR }}" -DTESTS_OS_NAME=macos
|
||||
cmake --build build
|
||||
cmake --build build -- --output-sync --keep-going
|
||||
env:
|
||||
LDFLAGS: -fuse-ld=lld # cmake/macos-static.cmake comments explain why we use lld.
|
||||
- name: Package binaries
|
||||
@@ -371,6 +371,6 @@ jobs:
|
||||
.github/scripts/install_deps.sh freebsd
|
||||
run: | # Leak detection is not supported on FreeBSD, so disable it.
|
||||
cmake -S . -B build --preset develop -DTESTS_OS_NAME=freebsd
|
||||
cmake --build build --verbose
|
||||
cmake --build build --verbose -- -k
|
||||
ASAN_OPTIONS=detect_leaks=0 ctest --test-dir build --schedule-random --label-exclude external
|
||||
cmake --install build --verbose
|
||||
|
||||
Reference in New Issue
Block a user