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
|
- name: Build binaries
|
||||||
run: |
|
run: |
|
||||||
cmake -S . -B build --preset macos-static -DFETCHCONTENT_BASE_DIR="${{ env.DEPS_ROOT_DIR }}"
|
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}
|
strip rgb{asm,link,fix,gfx}
|
||||||
env:
|
env:
|
||||||
LDFLAGS: -fuse-ld=lld # cmake/macos-static.cmake comments explain why we use lld.
|
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.
|
# better applied here than in our CMakeLists, where it could affect and break someone else.
|
||||||
run: |
|
run: |
|
||||||
cmake -S . -B build --preset develop -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_CXX_COMPILER=${{ matrix.cxx }} -DTESTS_OS_NAME=${{ matrix.os }}
|
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
|
sudo cmake --install build --verbose
|
||||||
- name: Package binaries
|
- name: Package binaries
|
||||||
run: |
|
run: |
|
||||||
@@ -123,7 +123,7 @@ jobs:
|
|||||||
- name: Build & install
|
- name: Build & install
|
||||||
run: |
|
run: |
|
||||||
cmake -S . -B build --preset macos-static -DFETCHCONTENT_BASE_DIR="${{ env.DEPS_ROOT_DIR }}" -DTESTS_OS_NAME=macos
|
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:
|
env:
|
||||||
LDFLAGS: -fuse-ld=lld # cmake/macos-static.cmake comments explain why we use lld.
|
LDFLAGS: -fuse-ld=lld # cmake/macos-static.cmake comments explain why we use lld.
|
||||||
- name: Package binaries
|
- name: Package binaries
|
||||||
@@ -371,6 +371,6 @@ jobs:
|
|||||||
.github/scripts/install_deps.sh freebsd
|
.github/scripts/install_deps.sh freebsd
|
||||||
run: | # Leak detection is not supported on FreeBSD, so disable it.
|
run: | # Leak detection is not supported on FreeBSD, so disable it.
|
||||||
cmake -S . -B build --preset develop -DTESTS_OS_NAME=freebsd
|
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
|
ASAN_OPTIONS=detect_leaks=0 ctest --test-dir build --schedule-random --label-exclude external
|
||||||
cmake --install build --verbose
|
cmake --install build --verbose
|
||||||
|
|||||||
Reference in New Issue
Block a user