We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 106bf80 commit 69d3b20Copy full SHA for 69d3b20
utils/build-script-impl
@@ -1260,8 +1260,13 @@ if [[ "${BUILD_NINJA}" ]] ; then
1260
set -x
1261
rm -rf "${build_dir}"
1262
cp -r "${NINJA_SOURCE_DIR}" "${build_dir}"
1263
- (cd "${build_dir}" && python ./configure.py --bootstrap)
1264
- { set +x; } 2>/dev/null
+ if [[ $(uname -s) == "Darwin" ]]; then
+ (cd "${build_dir}" && env CXX=$(xcrun --sdk macosx -find clang++) CFLAGS="-isysroot $(xcrun --sdk macosx --show-sdk-path)" python ./configure.py --bootstrap)
1265
+ { set +x; } 2>/dev/null
1266
+ else
1267
+ (cd "${build_dir}" && python ./configure.py --bootstrap)
1268
1269
+ fi
1270
fi
1271
export PATH="${build_dir}:${PATH}"
1272
0 commit comments