Remove file existence check for Mac environment variables

Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
This commit is contained in:
Dom Rodriguez 2021-11-05 20:06:25 +00:00
parent 08128f9a07
commit db90a85aa4
No known key found for this signature in database
GPG Key ID: 72DCF1231E54BD43
3 changed files with 8 additions and 1 deletions

7
Cargo.toml Normal file
View File

@ -0,0 +1,7 @@
[package]
name = "barrier"
version = "0.1.0"
edition = "2021"
publish = false
[dependencies]

View File

@ -24,7 +24,7 @@ B_CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=${B_BUILD_TYPE} ${B_CMAKE_FLAGS:-}"
if [ "$(uname)" = "Darwin" ]; then if [ "$(uname)" = "Darwin" ]; then
# macOS needs a little help, so we source this environment script to fix paths. # macOS needs a little help, so we source this environment script to fix paths.
[ -e "./macos_environment.sh" ] && . ./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" 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 fi

0
src/lib.rs Normal file
View File