Skip to content

Commit

Permalink
fix(macOS): Add check for macos_environment.sh in build script
Browse files Browse the repository at this point in the history
`macos_environment.sh` reference in `clean_build.sh` caused a build
error.

This fix allows for `macos_environment.sh` to be sourced, if it exists.
If not, it doesn't error out.

Related: input-leap#1846.

Signed-off-by: Dom Rodriguez <[email protected]>
  • Loading branch information
shymega committed Jun 17, 2024
1 parent 3ffbff2 commit 26f2fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clean_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ B_CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=${B_BUILD_TYPE} ${B_CMAKE_FLAGS:-}"

if [ "$(uname)" = "Darwin" ]; then
# macOS needs a little help, so we source this environment script to fix paths.
. ./macos_environment.sh
[ -e ./macos_environment.sh ] && . ./macos_environment.sh
B_CMAKE_FLAGS="${B_CMAKE_FLAGS} -DCMAKE_OSX_SYSROOT=$(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9"
fi

Expand Down

0 comments on commit 26f2fa1

Please sign in to comment.