Skip to content

Commit bfa5b21

Browse files
authored
docs: note reason for is_cfi = false (electron#33749)
1 parent d804cd5 commit bfa5b21

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build/args/all.gn

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,16 @@ dawn_enable_vulkan_validation_layers = false
2929
# See https://chromium-review.googlesource.com/c/chromium/src/+/2774898.
3030
enable_pseudolocales = false
3131

32-
is_cfi = false
33-
3432
# Make application name configurable at runtime for cookie crypto
3533
allow_runtime_configurable_key_storage = true
3634

3735
# CET shadow stack is incompatible with v8, until v8 is CET compliant
3836
# enabling this flag causes main process crashes where CET is enabled
3937
# Ref: https://source.chromium.org/chromium/chromium/src/+/45fba672185aae233e75d6ddc81ea1e0b30db050:v8/BUILD.gn;l=357
4038
enable_cet_shadow_stack = false
39+
40+
# For similar reasons, disable CFI, which is not well supported in V8.
41+
# Chromium doesn't have any problems with this because they do not run
42+
# V8 in the browser process.
43+
# Ref: https://source.chromium.org/chromium/chromium/src/+/45fba672185aae233e75d6ddc81ea1e0b30db050:v8/BUILD.gn;l=281
44+
is_cfi = false

0 commit comments

Comments
 (0)