mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Bug 1902214 - Stop filtering out -isysroot and -gcc-toolchain. r=firefox-build-system-reviewers,sergesanspaille
-isysroot was appearing in the llvm-config output on mac in very old clang.llvm.org builds. The latest builds don't do that anymore, and our own bootstrapped builds don't either. -gcc-toolchain was filtered out because we were using it to build our own clang and that transpired in llvm-config, but we don't anymore, as of bug 1719226. Differential Revision: https://phabricator.services.mozilla.com/D213534
This commit is contained in:
parent
c85392b4ef
commit
d88364f87d
@ -5,14 +5,7 @@ dnl file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
AC_DEFUN([MOZ_CONFIG_CLANG_PLUGIN], [
|
||||
|
||||
if test -n "$ENABLE_CLANG_PLUGIN"; then
|
||||
dnl For some reason the llvm-config downloaded from clang.llvm.org for clang3_8
|
||||
dnl produces a -isysroot flag for a sysroot which might not ship when passed
|
||||
dnl --cxxflags. We use sed to remove this argument so that builds work on OSX
|
||||
dnl
|
||||
dnl For a similar reason, we remove any -gcc-toolchain arguments, since the
|
||||
dnl directories specified by such arguments might not exist on the current
|
||||
dnl machine.
|
||||
LLVM_CXXFLAGS=`$LLVM_CONFIG --cxxflags | sed -e 's/-isysroot [[^ ]]*//' -e 's/-gcc-toolchain [[^ ]]*//'`
|
||||
LLVM_CXXFLAGS=`$LLVM_CONFIG --cxxflags`
|
||||
|
||||
LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags | tr '\n' ' '`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user