diff --git a/config/fuchsia/BUILD.gn b/config/fuchsia/BUILD.gn index 9a0ca692f..56d79f417 100644 --- a/config/fuchsia/BUILD.gn +++ b/config/fuchsia/BUILD.gn @@ -51,7 +51,11 @@ config("compiler") { # TODO(crbug.com/821951): Clang enables SafeStack by default when targeting # Fuchsia, but it breaks some tests, notably in V8. - cflags += [ "-fno-sanitize=safe-stack" ] + # Force the toolchain to use shadow-call-stack instead, until that is default. + cflags += [ + "-fno-sanitize=safe-stack", + "-fsanitize=shadow-call-stack", + ] libs = [ "zircon" ] }