Index: BUILD.gn |
diff --git a/BUILD.gn b/BUILD.gn |
index 01d71a1a5ddc4ed653f9f9eb433fcb00d04bec83..2bc49e6d931fdce0234cb612e9d7c21e4f3a871a 100644 |
--- a/BUILD.gn |
+++ b/BUILD.gn |
@@ -62,6 +62,9 @@ declare_args() { |
# tools/gen-postmortem-metadata.py for details. |
v8_postmortem_support = false |
+ # Switches off inlining in V8. |
+ v8_no_inline = false |
+ |
# Similar to vfp but on MIPS. |
v8_can_use_fpu_instructions = true |
@@ -357,6 +360,13 @@ config("toolchain") { |
} else if (dcheck_always_on) { |
defines += [ "DEBUG" ] |
} |
+ |
+ if (v8_no_inline) { |
+ cflags += [ |
+ "-fno-inline-functions", |
+ "-fno-inline", |
+ ] |
+ } |
} |
############################################################################### |