Skip to content

Commit

Permalink
Speed up dependencies build by only building release libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
BewareMyPower committed Dec 16, 2024
1 parent b63fb20 commit e0b2ecf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/mac/build-static-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ cd `dirname $0`/../..

if [[ $ARCH == "x86_64" ]]; then
export VCPKG_TRIPLET=x64-osx
cp -f x64-osx.cmake vcpkg/triplets/x64-osx.cmake
cp -f vcpkg-triplets/x64-osx.cmake vcpkg/triplets/x64-osx.cmake
elif [[ $ARCH == "arm64" ]]; then
export VCPKG_TRIPLET=arm64-osx
cp -f arm64-osx.cmake vcpkg/triplets/community/arm64-osx.cmake
cp -f vcpkg-triplets/arm64-osx.cmake vcpkg/triplets/community/arm64-osx.cmake
else
echo "Invalid ARCH: $ARCH"
exit 1
Expand Down
2 changes: 2 additions & 0 deletions arm64-osx.cmake → vcpkg-triplets/arm64-osx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
set(VCPKG_OSX_ARCHITECTURES arm64)
set(VCPKG_OSX_DEPLOYMENT_TARGET 13.7)

set(VCPKG_BUILD_TYPE release)
2 changes: 2 additions & 0 deletions x64-osx.cmake → vcpkg-triplets/x64-osx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
set(VCPKG_OSX_ARCHITECTURES x86_64)
set(VCPKG_OSX_DEPLOYMENT_TARGET 13.7)

set(VCPKG_BUILD_TYPE release)

0 comments on commit e0b2ecf

Please sign in to comment.