Skip to content

Commit

Permalink
[libzstd on mac]
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed Mar 30, 2024
1 parent 420f9e6 commit 5762719
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ jobs:
bootstrap_cmake_flags: >-
-DBUILD_LTO_LIBS=ON
-DD_COMPILER_FLAGS=-gcc=/usr/bin/c++
-DCMAKE_EXE_LINKER_FLAGS=-L/opt/homebrew/opt/zstd/lib
# https://github.com/ldc-developers/ldc/issues/4462:
# When using LTO, we need to explicitly export ~all symbols for plugin support via `ld64 -exported_symbol '__*'`.
# Additionally `-w` to suppress resulting linker warnings.
extra_cmake_flags: >-
-DBUILD_LTO_LIBS=ON
-DD_COMPILER_FLAGS="-gcc=/usr/bin/c++ -O -flto=full -defaultlib=phobos2-ldc-lto,druntime-ldc-lto -L-exported_symbol '-L__*' -L-w"
-DEXTRA_CXXFLAGS=-flto=full
-DCMAKE_EXE_LINKER_FLAGS=-L/opt/homebrew/opt/zstd/lib
with_pgo: true

- job_name: macOS arm64
Expand All @@ -57,9 +59,11 @@ jobs:
bootstrap_cmake_flags: >-
-DBUILD_LTO_LIBS=ON
-DD_COMPILER_FLAGS=-gcc=/usr/bin/c++
-DCMAKE_EXE_LINKER_FLAGS=-L/opt/homebrew/opt/zstd/lib
extra_cmake_flags: >-
-DBUILD_LTO_LIBS=ON
-DD_COMPILER_FLAGS=-gcc=/usr/bin/c++
-DCMAKE_EXE_LINKER_FLAGS=-L/opt/homebrew/opt/zstd/lib
# -DD_COMPILER_FLAGS="-gcc=/usr/bin/c++ -O -flto=full -defaultlib=phobos2-ldc-lto,druntime-ldc-lto -L-exported_symbol '-L__*' -L-w"
# -DLDC_LINK_MANUALLY=ON -DD_LINKER_ARGS="-L$PWD/../bootstrap-ldc/lib;-lphobos2-ldc;-ldruntime-ldc"
# -DD_COMPILER_FLAGS=-flto=full
Expand Down

0 comments on commit 5762719

Please sign in to comment.