CI: the macOS shared libreaktor without link-time optimization
Its package carries libreaktor-modules.a, a static archive an app links itself, so like the static libreaktor it is built with REAKTOR_LTO off now that Apple Clang defaults to on. The static build's configure line is split back into continued lines and uses the job's compiler cache. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
7f7a3b723d
commit
e9858a3654
@@ -137,8 +137,11 @@ jobs:
|
||||
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
|
||||
run: |
|
||||
version='${{ inputs.version || 'dev' }}'
|
||||
export CCACHE_DIR=$PWD/.ccache CCACHE_BASEDIR=$PWD CCACHE_MAXSIZE=500M
|
||||
name="libreaktor-${version}-macos-${{ matrix.arch }}"
|
||||
cmake -S . -B build-lib -G Ninja -DCMAKE_BUILD_TYPE=Release -DREAKTOR_LTO=OFF -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON </dev/null
|
||||
cmake -S . -B build-lib -G Ninja -DCMAKE_BUILD_TYPE=Release -DREAKTOR_LTO=OFF \
|
||||
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
||||
-DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON </dev/null
|
||||
cmake --build build-lib --target libreaktor </dev/null
|
||||
cmake --install build-lib --prefix "dist/$name" --component libreaktor </dev/null
|
||||
cmake -S examples/consumer -B build-consumer -G Ninja -DCMAKE_BUILD_TYPE=Release \
|
||||
@@ -162,7 +165,7 @@ jobs:
|
||||
export CCACHE_DIR=$PWD/.ccache CCACHE_BASEDIR=$PWD CCACHE_MAXSIZE=500M
|
||||
version='${{ inputs.version || 'dev' }}'
|
||||
name="libreaktor-shared-${version}-macos-${{ matrix.arch }}"
|
||||
cmake -S . -B build-shared -G Ninja -DCMAKE_BUILD_TYPE=Release -DREAKTOR_SHARED=ON \
|
||||
cmake -S . -B build-shared -G Ninja -DCMAKE_BUILD_TYPE=Release -DREAKTOR_SHARED=ON -DREAKTOR_LTO=OFF \
|
||||
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
||||
-DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON </dev/null
|
||||
cmake --build build-shared </dev/null
|
||||
|
||||
Reference in New Issue
Block a user