Bug 1525588 - Do not enable CFG on ARM builds, as it causes undiagnosed failures. r=dmajor

--HG--
extra : rebase_source : c305609f0d5a08958e9901b2b02867ea7fa200c7
This commit is contained in:
Tom Ritter 2019-02-06 11:42:24 -06:00
parent 60847f1c1f
commit b06907665c

View File

@ -1756,7 +1756,9 @@ def security_hardening_cflags(hardening_flag, asan, optimize, c_compiler, target
js_ldflags.append("-Wl,--dynamicbase")
# Control Flow Guard (CFG) ----------------------------
if c_compiler.type == 'clang-cl' and c_compiler.version >= '8':
# See Bug 1525588 for why this doesn't work on Windows ARM
if c_compiler.type == 'clang-cl' and c_compiler.version >= '8' and \
target.cpu != 'aarch64':
flags.append("-guard:cf")
js_flags.append("-guard:cf")
# nolongjmp is needed because clang doesn't emit the CFG tables of