From db90a85aa4d4ca9cf2e7368e7b08299b65e8ba61 Mon Sep 17 00:00:00 2001 From: Dom Rodriguez Date: Fri, 5 Nov 2021 20:06:25 +0000 Subject: [PATCH] Remove file existence check for Mac environment variables Signed-off-by: Dom Rodriguez --- Cargo.toml | 7 +++++++ clean_build.sh | 2 +- src/lib.rs | 0 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 Cargo.toml create mode 100644 src/lib.rs diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 00000000..ea67ec53 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "barrier" +version = "0.1.0" +edition = "2021" +publish = false + +[dependencies] diff --git a/clean_build.sh b/clean_build.sh index d753bc32..00a2e39e 100755 --- a/clean_build.sh +++ b/clean_build.sh @@ -24,7 +24,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. - [ -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" fi diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 00000000..e69de29b