osx fix
sgraves/cpp-build-system_mac/pipeline/head There was a failure building this commit

This commit is contained in:
sgraves committed 2026-11-21 13:41:52 -06:00
1 parent fee41e2262
commit 36a1c9b89e
1 file changed
+5 -4
+5 -4
View File
@@ -1,10 +1,11 @@
#!/usr/bin/env bash
if ([ "$(uname -m)" == "arm64" ] || [ "$(uname -m)" == "aarch64" ]) &&
[ "${PROJECT_IS_ARM64}" == "0" ]; then
if ([ "$(uname -m)" == "arm64" ] || [ "$(uname -m)" == "aarch64" ]) && [ "${PROJECT_IS_ARM64}" == "0" ]; then
HOST_CFG="--host=x86_64-apple-darwin"
export CC="clang -arch x86_64"
export CXX="clang++ -arch x86_64"
CLANG_BIN="$(xcrun -f clang)"
CLANGXX_BIN="$(xcrun -f clang++)"
export CC="${CLANG_BIN} -arch x86_64"
export CXX="${CLANGXX_BIN} -arch x86_64"
fi
CXXFLAGS="-std=gnu++17 -march=$1 -mtune=generic" ./configure \