[vm,fuchsia] Disable safe-stack
When running with safe-stack, the interpreter's C++ stack gets
clobbered, but does not get clobbered when running without safe-stack.
Disabling while investigating further to avoid crashes in Fuchsia.
Change-Id: I8ea03ee0e243e878a6f01ce499ad2ff109501d8b
Reviewed-on: https://dart-review.googlesource.com/c/88747
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
diff --git a/runtime/BUILD.gn b/runtime/BUILD.gn
index 3eb59b3..0e3e2e2 100644
--- a/runtime/BUILD.gn
+++ b/runtime/BUILD.gn
@@ -191,6 +191,11 @@
if (defined(is_tsan) && is_tsan) {
ldflags += [ "-fsanitize=thread" ]
}
+
+ if (is_fuchsia) {
+ # safe-stack does not work with the interpreter.
+ cflags += [ "-fno-sanitize=safe-stack" ]
+ }
}
}