зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1242722 - Remove clang-cl command-line argument workarounds; r=glandium
In https://llvm.org/bugs/show_bug.cgi?id=26090, we changed the default behavior of clang-cl to accept unknown command line arguments. This patch removes the Firefox workaround for this issue.
This commit is contained in:
Родитель
f0b139bf4f
Коммит
c4a79a467d
|
@ -2316,14 +2316,10 @@ ia64*-hpux*)
|
|||
MOZ_OPTIMIZE_FLAGS='-O1 -Oi'
|
||||
MOZ_FIX_LINK_PATHS=
|
||||
MOZ_COMPONENT_NSPR_LIBS='$(NSPR_LIBS)'
|
||||
# Disable these flags on clang-cl since it doesn't ignore unknown arguments by default, and
|
||||
# autoconf insists on passing $LDFLAGS to the compiler.
|
||||
if test -z "$CLANG_CL"; then
|
||||
LDFLAGS="$LDFLAGS -LARGEADDRESSAWARE -NXCOMPAT"
|
||||
if test -z "$DEVELOPER_OPTIONS"; then
|
||||
LDFLAGS="$LDFLAGS -RELEASE"
|
||||
fi
|
||||
fi
|
||||
dnl For profile-guided optimization
|
||||
PROFILE_GEN_CFLAGS="-GL"
|
||||
PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT"
|
||||
|
@ -2397,12 +2393,8 @@ ia64*-hpux*)
|
|||
LDFLAGS="$LDFLAGS -Wl,--enable-stdcall-fixup -Wl,--large-address-aware"
|
||||
else
|
||||
DSO_LDOPTS="$DSO_LDOPTS -MACHINE:X86"
|
||||
# Disable this flag on clang-cl since it doesn't ignore unknown arguments by default, and
|
||||
# autoconf insists on passing $LDFLAGS to the compiler.
|
||||
if test -z "$CLANG_CL"; then
|
||||
LDFLAGS="$LDFLAGS -SAFESEH"
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_DEFINE(_X86_)
|
||||
;;
|
||||
|
|
|
@ -1775,14 +1775,10 @@ ia64*-hpux*)
|
|||
WARNINGS_AS_ERRORS='-WX'
|
||||
MOZ_OPTIMIZE_FLAGS="-O2"
|
||||
MOZ_FIX_LINK_PATHS=
|
||||
# Disable these flags on clang-cl since it doesn't ignore unknown arguments by default, and
|
||||
# autoconf insists on passing $LDFLAGS to the compiler.
|
||||
if test -z "$CLANG_CL"; then
|
||||
LDFLAGS="$LDFLAGS -LARGEADDRESSAWARE -NXCOMPAT"
|
||||
if test -z "$DEVELOPER_OPTIONS"; then
|
||||
LDFLAGS="$LDFLAGS -RELEASE"
|
||||
fi
|
||||
fi
|
||||
dnl For profile-guided optimization
|
||||
PROFILE_GEN_CFLAGS="-GL"
|
||||
PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT"
|
||||
|
@ -1835,12 +1831,8 @@ ia64*-hpux*)
|
|||
LDFLAGS="$LDFLAGS -Wl,--large-address-aware"
|
||||
else
|
||||
DSO_LDOPTS="$DSO_LDOPTS -MACHINE:X86"
|
||||
# Disable this flag on clang-cl since it doesn't ignore unknown arguments by default, and
|
||||
# autoconf insists on passing $LDFLAGS to the compiler.
|
||||
if test -z "$CLANG_CL"; then
|
||||
LDFLAGS="$LDFLAGS -SAFESEH"
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_DEFINE(_X86_)
|
||||
;;
|
||||
|
|
Загрузка…
Ссылка в новой задаче