Index: BUILD.gn |
diff --git a/BUILD.gn b/BUILD.gn |
index 2f065a0504bc5416fe89898850d5f67c049ce662..6340cc50d28b31e6e094b4430d396219f427dc05 100644 |
--- a/BUILD.gn |
+++ b/BUILD.gn |
@@ -30,7 +30,15 @@ declare_args() { |
v8_deprecation_warnings = false |
# Enable compiler warnings when using V8_DEPRECATE_SOON apis. |
- v8_imminent_deprecation_warnings = "" |
+ # |
+ # TODO(brettw) http://crbug.com/684096 Remove the define condition and the |
+ # v8_imminent_deprecation_warnings_default variable when the build_override |
+ # conversion is complete. This value should just default to true. |
+ if (defined(v8_imminent_deprecation_warnings_default)) { |
+ v8_imminent_deprecation_warnings = v8_imminent_deprecation_warnings_default |
+ } else { |
+ v8_imminent_deprecation_warnings = false |
+ } |
# Embeds the given script into the snapshot. |
v8_embed_script = "" |
@@ -76,22 +84,38 @@ declare_args() { |
# Similar to the ARM hard float ABI but on MIPS. |
v8_use_mips_abi_hardfloat = true |
-} |
-# Set project-specific defaults for some args if not provided in args.gn. The |
-# defaults can be set in the respective build_overrides files. |
-if (v8_imminent_deprecation_warnings == "") { |
- if (defined(v8_imminent_deprecation_warnings_default)) { |
- v8_imminent_deprecation_warnings = v8_imminent_deprecation_warnings_default |
- } else { |
- v8_imminent_deprecation_warnings = false |
+ # List of extra files to snapshot. They will be snapshotted in order so |
+ # if files export symbols used by later files, they should go first. |
+ # |
+ # This default is used by cctests. Projects using V8 will want to override. |
+ # |
+ # TODO(brettw) http://crbug.com/684096 Remove the define condition when the |
+ # build_override conversion is complete. |
+ if (!defined(v8_extra_library_files)) { |
+ v8_extra_library_files = [ |
Michael Achenbach
2017/01/24 20:16:27
So, the v8_extra_library_files and the var below a
brettw
2017/01/24 20:35:52
Correct, this isn't always the greatest thing (as
|
+ "//test/cctest/test-extra.js" |
+ ] |
} |
-} |
-if (v8_enable_gdbjit == "") { |
+ |
+ # Like v8_extra_library_files but for experimental features. |
+ # |
+ # This default is used by cctests. Projects using V8 will want to override. |
+ # |
+ # TODO(brettw) http://crbug.com/684096 Remove the define condition when the |
+ # build_override conversion is complete. |
+ if (!defined(v8_experimental_extra_library_files)) { |
+ v8_experimental_extra_library_files = [ |
+ "//test/cctest/test-experimental-extra.js", |
+ ] |
+ } |
+ |
if (defined(v8_enable_gdbjit_default)) { |
v8_enable_gdbjit = v8_enable_gdbjit_default |
} else { |
- v8_enable_gdbjit = false |
+ v8_enable_gdbjit = ((v8_current_cpu == "x86" || v8_current_cpu == "x64" || |
Michael Achenbach
2017/01/24 20:16:28
I think this is different now. We want this to be
brettw
2017/01/24 20:35:52
This is what I meant to address in https://coderev
|
+ v8_current_cpu == "x87") && (is_linux || is_mac)) || |
+ (v8_current_cpu == "ppc64" && is_linux) |
} |
} |