Index: BUILD.gn |
diff --git a/BUILD.gn b/BUILD.gn |
index 2f065a0504bc5416fe89898850d5f67c049ce662..7197da08e02d92de1f135609c7738a6b2fd2bd31 100644 |
--- a/BUILD.gn |
+++ b/BUILD.gn |
@@ -29,6 +29,9 @@ declare_args() { |
# Enable compiler warnings when using V8_DEPRECATED apis. |
v8_deprecation_warnings = false |
+ # Allow the embedder to add a custom suffix to the version string. |
+ v8_embedder_string = "" |
+ |
# Enable compiler warnings when using V8_DEPRECATE_SOON apis. |
v8_imminent_deprecation_warnings = "" |
@@ -189,6 +192,10 @@ config("features") { |
defines = [] |
+ if (v8_embedder_string != "") { |
+ defines += [ "V8_EMBEDDER_STRING=\"$v8_embedder_string\"" ] |
+ } |
+ |
if (v8_enable_disassembler) { |
defines += [ "ENABLE_DISASSEMBLER" ] |
} |