Skip to content

Commit

Permalink
fix: try more option to reduce macosx build size #40
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxianpeng committed Jan 24, 2025
1 parent 18be9dc commit 71893ae
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,13 @@ jobs:
if: ${{ github.actor != 'dependabot[bot]' }}
env:
COMMON_CMAKE_ARGS: '-DBUILD_SHARED_LIBS=OFF -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra"'
MACOS_CMAKE_ARGS: '-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_C_COMPILER=gcc-11 -DZSTD_STATIC_LINKING_ONLY=1'
MACOS_CMAKE_ARGS: >
-DCMAKE_BUILD_TYPE=MinSizeRel
-DCMAKE_CXX_FLAGS_MINSIZEREL="-Oz"
-DCMAKE_C_FLAGS_MINSIZEREL="-Oz"
-DCMAKE_CXX_COMPILER=g++-11
-DCMAKE_C_COMPILER=gcc-11
-DZSTD_STATIC_LINKING_ONLY=1
LINUX_CMAKE_ARGS: '-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_CXX_COMPILER=g++-10 -DCMAKE_C_COMPILER=gcc-10'
RELEASE: '${{ matrix.release }}'
suffix: '${{ matrix.clang-version }}_${{ matrix.os }}-amd64'
Expand Down

0 comments on commit 71893ae

Please sign in to comment.