diff options
Diffstat (limited to 'deps/v8/gni')
-rw-r--r-- | deps/v8/gni/isolate.gni | 7 | ||||
-rw-r--r-- | deps/v8/gni/v8.gni | 10 |
2 files changed, 17 insertions, 0 deletions
diff --git a/deps/v8/gni/isolate.gni b/deps/v8/gni/isolate.gni index 4bdf0c0fad..6ad25c2774 100644 --- a/deps/v8/gni/isolate.gni +++ b/deps/v8/gni/isolate.gni @@ -106,6 +106,11 @@ template("v8_isolate_run") { } else { use_external_startup_data = "0" } + if (is_ubsan_vptr) { + ubsan_vptr = "1" + } else { + ubsan_vptr = "0" + } if (v8_use_snapshot) { use_snapshot = "true" } else { @@ -168,6 +173,8 @@ template("v8_isolate_run") { "--config-variable", "target_arch=$target_arch", "--config-variable", + "ubsan_vptr=$ubsan_vptr", + "--config-variable", "v8_use_external_startup_data=$use_external_startup_data", "--config-variable", "v8_use_snapshot=$use_snapshot", diff --git a/deps/v8/gni/v8.gni b/deps/v8/gni/v8.gni index 0467720f45..4b8292a244 100644 --- a/deps/v8/gni/v8.gni +++ b/deps/v8/gni/v8.gni @@ -174,3 +174,13 @@ template("v8_component") { configs += v8_add_configs } } + +template("v8_static_library") { + static_library(target_name) { + complete_static_lib = true + forward_variables_from(invoker, "*", [ "configs" ]) + configs += invoker.configs + configs -= v8_remove_configs + configs += v8_add_configs + } +} |