mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
60847f1c1f
commit
b06907665c
@ -1756,7 +1756,9 @@ def security_hardening_cflags(hardening_flag, asan, optimize, c_compiler, target
|
|||||||
js_ldflags.append("-Wl,--dynamicbase")
|
js_ldflags.append("-Wl,--dynamicbase")
|
||||||
|
|
||||||
# Control Flow Guard (CFG) ----------------------------
|
# 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")
|
flags.append("-guard:cf")
|
||||||
js_flags.append("-guard:cf")
|
js_flags.append("-guard:cf")
|
||||||
# nolongjmp is needed because clang doesn't emit the CFG tables of
|
# nolongjmp is needed because clang doesn't emit the CFG tables of
|
||||||
|
Loading…
Reference in New Issue
Block a user