Skip to content

Commit fb42e07

Browse files
committed
[build-script] Isolate CMake from the system
When building on Darwin, we're supposed to build against the SDK, not the host system. Isolate the build further from the system.
1 parent 59add19 commit fb42e07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/build-script

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,9 @@ class BuildScriptInvocation(object):
701701
"--host-lipo", toolchain.lipo,
702702
]
703703

704+
# Isolate build from the system; Darwin toolchains build against SDKs.
705+
args.extra_cmake_options.append('-DCMAKE_IGNORE_PATH=/usr/lib;/usr/local/lib;/lib')
706+
704707
if toolchain.libtool is not None:
705708
impl_args += [
706709
"--host-libtool", toolchain.libtool,

0 commit comments

Comments
 (0)