From 856ee10cbae7426e69adbfe375265c7c1d3e1b58 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Wed, 7 Jul 2021 03:15:49 +0300 Subject: [PATCH] Bug 1719226 - Fix clang bustage r=bustage-fix. CLOSED TREE --- build/build-clang/build-clang.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build-clang/build-clang.py b/build/build-clang/build-clang.py index 512033428075..4a923a4d738f 100755 --- a/build/build-clang/build-clang.py +++ b/build/build-clang/build-clang.py @@ -308,7 +308,7 @@ def build_one_stage( cmake_args += ["-DLLVM_ENABLE_PROJECTS=clang;compiler-rt"] if build_wasm: cmake_args += ["-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly"] - if is_linux(): + if is_linux() and not osx_cross_compile: cmake_args += ["-DLLVM_BINUTILS_INCDIR=/usr/include"] cmake_args += ["-DLLVM_ENABLE_LIBXML2=FORCE_ON"] sysroot = os.path.join(os.environ.get("MOZ_FETCHES_DIR", ""), "sysroot")