| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d653f03 commit d4033c1
10 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -827,7 +827,6 @@ action("v8_dump_build_config") { | |||
| 827 | 827 | is_gcov_coverage = v8_code_coverage && !is_clang | |
| 828 | 828 | args = [ | |
| 829 | 829 | rebase_path("$root_out_dir/v8_build_config.json", root_build_dir), | |
| 830 | - "current_cpu=\"$current_cpu\"", | ||
| 831 | 830 | "dcheck_always_on=$dcheck_always_on", | |
| 832 | 831 | "is_asan=$is_asan", | |
| 833 | 832 | "is_cfi=$is_cfi", | |
@@ -838,7 +837,6 @@ action("v8_dump_build_config") { | |||
| 838 | 837 | "is_tsan=$is_tsan", | |
| 839 | 838 | "is_ubsan_vptr=$is_ubsan_vptr", | |
| 840 | 839 | "target_cpu=\"$target_cpu\"", | |
| 841 | - "v8_current_cpu=\"$v8_current_cpu\"", | ||
| 842 | 840 | "v8_enable_i18n_support=$v8_enable_i18n_support", | |
| 843 | 841 | "v8_target_cpu=\"$v8_target_cpu\"", | |
| 844 | 842 | "v8_use_snapshot=$v8_use_snapshot", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -156,8 +156,6 @@ template("v8_isolate_run") { | |||
| 156 | 156 | "--config-variable", | |
| 157 | 157 | "icu_use_data_file_flag=$icu_use_data_file_flag", | |
| 158 | 158 | "--config-variable", | |
| 159 | - "is_gn=1", | ||
| 160 | - "--config-variable", | ||
| 161 | 159 | "msan=$msan", | |
| 162 | 160 | "--config-variable", | |
| 163 | 161 | "tsan=$tsan", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -74,7 +74,6 @@ | |||
| 74 | 74 | '--config-variable', 'gcmole=<(gcmole)', | |
| 75 | 75 | '--config-variable', 'has_valgrind=<(has_valgrind)', | |
| 76 | 76 | '--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)', | |
| 77 | - '--config-variable', 'is_gn=0', | ||
| 78 | 77 | '--config-variable', 'msan=<(msan)', | |
| 79 | 78 | '--config-variable', 'tsan=<(tsan)', | |
| 80 | 79 | '--config-variable', 'coverage=<(coverage)', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,6 +32,7 @@ | |||
| 32 | 32 | 'msvs_use_common_release': 0, | |
| 33 | 33 | 'clang%': 0, | |
| 34 | 34 | 'asan%': 0, | |
| 35 | + 'cfi_vptr%': 0, | ||
| 35 | 36 | 'lsan%': 0, | |
| 36 | 37 | 'msan%': 0, | |
| 37 | 38 | 'tsan%': 0, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ | |||
| 11 | 11 | #define V8_MAJOR_VERSION 6 | |
| 12 | 12 | #define V8_MINOR_VERSION 2 | |
| 13 | 13 | #define V8_BUILD_NUMBER 414 | |
| 14 | - #define V8_PATCH_LEVEL 32 | ||
| 14 | + #define V8_PATCH_LEVEL 33 | ||
| 15 | 15 | ||
| 16 | 16 | // Use 1 for candidates and 0 otherwise. | |
| 17 | 17 | // (Boolean macro values are not supported by all preprocessors.) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,7 +42,7 @@ | |||
| 42 | 42 | { | |
| 43 | 43 | 'target_name': 'v8', | |
| 44 | 44 | 'dependencies_traverse': 1, | |
| 45 | - 'dependencies': ['v8_maybe_snapshot'], | ||
| 45 | + 'dependencies': ['v8_maybe_snapshot', 'v8_dump_build_config'], | ||
| 46 | 46 | 'conditions': [ | |
| 47 | 47 | ['want_separate_host_toolset==1', { | |
| 48 | 48 | 'toolsets': ['host', 'target'], | |
@@ -2499,5 +2499,49 @@ | |||
| 2499 | 2499 | }], | |
| 2500 | 2500 | ], | |
| 2501 | 2501 | }, | |
| 2502 | + { | ||
| 2503 | + 'target_name': 'v8_dump_build_config', | ||
| 2504 | + 'type': 'none', | ||
| 2505 | + 'variables': { | ||
| 2506 | + }, | ||
| 2507 | + 'conditions': [ | ||
| 2508 | + [ 'want_separate_host_toolset==1', { | ||
| 2509 | + 'toolsets': ['host'], | ||
| 2510 | + }, { | ||
| 2511 | + 'toolsets': ['target'], | ||
| 2512 | + }] | ||
| 2513 | + ], | ||
| 2514 | + 'actions': [ | ||
| 2515 | + { | ||
| 2516 | + 'action_name': 'v8_dump_build_config', | ||
| 2517 | + 'inputs': [ | ||
| 2518 | + '../tools/testrunner/utils/dump_build_config_gyp.py', | ||
| 2519 | + ], | ||
| 2520 | + 'outputs': [ | ||
| 2521 | + '<(PRODUCT_DIR)/v8_build_config.json', | ||
| 2522 | + ], | ||
| 2523 | + 'action': [ | ||
| 2524 | + 'python', | ||
| 2525 | + '../tools/testrunner/utils/dump_build_config_gyp.py', | ||
| 2526 | + '<(PRODUCT_DIR)/v8_build_config.json', | ||
| 2527 | + 'dcheck_always_on=<(dcheck_always_on)', | ||
| 2528 | + 'is_asan=<(asan)', | ||
| 2529 | + 'is_cfi=<(cfi_vptr)', | ||
| 2530 | + 'is_component_build="<(component)"', | ||
| 2531 | + 'is_debug="<(CONFIGURATION_NAME)"', | ||
| 2532 | + # Not available in gyp. | ||
| 2533 | + 'is_gcov_coverage=0', | ||
| 2534 | + 'is_msan=<(msan)', | ||
| 2535 | + 'is_tsan=<(tsan)', | ||
| 2536 | + # Not available in gyp. | ||
| 2537 | + 'is_ubsan_vptr=0', | ||
| 2538 | + 'target_cpu="<(target_arch)"', | ||
| 2539 | + 'v8_enable_i18n_support=<(v8_enable_i18n_support)', | ||
| 2540 | + 'v8_target_cpu="<(v8_target_arch)"', | ||
| 2541 | + 'v8_use_snapshot=<(v8_use_snapshot)', | ||
| 2542 | + ], | ||
| 2543 | + }, | ||
| 2544 | + ], | ||
| 2545 | + }, | ||
| 2502 | 2546 | ], | |
| 2503 | 2547 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -127,7 +127,7 @@ def infer_arch(d8): | |||
| 127 | 127 | executable. | |
| 128 | 128 | """ | |
| 129 | 129 | with open(os.path.join(os.path.dirname(d8), 'v8_build_config.json')) as f: | |
| 130 | - arch = json.load(f)['v8_current_cpu'] | ||
| 130 | + arch = json.load(f)['v8_target_cpu'] | ||
| 131 | 131 | return 'ia32' if arch == 'x86' else arch | |
| 132 | 132 | ||
| 133 | 133 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,6 +7,7 @@ | |||
| 7 | 7 | '../run-tests.py', | |
| 8 | 8 | ], | |
| 9 | 9 | 'files': [ | |
| 10 | + '<(PRODUCT_DIR)/v8_build_config.json', | ||
| 10 | 11 | '../run-tests.py', | |
| 11 | 12 | './' | |
| 12 | 13 | ], | |
@@ -20,12 +21,5 @@ | |||
| 20 | 21 | ], | |
| 21 | 22 | }, | |
| 22 | 23 | }], | |
| 23 | - ['is_gn==1', { | ||
| 24 | - 'variables': { | ||
| 25 | - 'files': [ | ||
| 26 | - '<(PRODUCT_DIR)/v8_build_config.json', | ||
| 27 | - ], | ||
| 28 | - }, | ||
| 29 | - }], | ||
| 30 | 24 | ], | |
| 31 | 25 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,12 +15,12 @@ | |||
| 15 | 15 | import os | |
| 16 | 16 | import sys | |
| 17 | 17 | ||
| 18 | - assert len(sys.argv) > 1 | ||
| 18 | + assert len(sys.argv) > 2 | ||
| 19 | 19 | ||
| 20 | 20 | def as_json(kv): | |
| 21 | 21 | assert '=' in kv | |
| 22 | 22 | k, v = kv.split('=', 1) | |
| 23 | 23 | return k, json.loads(v) | |
| 24 | 24 | ||
| 25 | 25 | with open(sys.argv[1], 'w') as f: | |
| 26 | - json.dump(dict(as_json(kv) for kv in sys.argv[2:]), f) | ||
| 26 | + json.dump(dict(map(as_json, sys.argv[2:])), f) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,47 @@ | |||
| 1 | + # Copyright 2017 the V8 project authors. All rights reserved. | ||
| 2 | + # Use of this source code is governed by a BSD-style license that can be | ||
| 3 | + # found in the LICENSE file. | ||
| 4 | + | ||
| 5 | + """The same as dump_build_config.py but for gyp legacy. | ||
| 6 | + | ||
| 7 | + Expected to be called like: | ||
| 8 | + dump_build_config.py path/to/file.json [key1=value1 ...] | ||
| 9 | + | ||
| 10 | + Raw gyp values are supported - they will be tranformed into valid json. | ||
| 11 | + """ | ||
| 12 | + # TODO(machenbach): Remove this when gyp is deprecated. | ||
| 13 | + | ||
| 14 | + import json | ||
| 15 | + import os | ||
| 16 | + import sys | ||
| 17 | + | ||
| 18 | + assert len(sys.argv) > 2 | ||
| 19 | + | ||
| 20 | + | ||
| 21 | + GYP_GN_CONVERSION = { | ||
| 22 | + 'is_component_build': { | ||
| 23 | + '"shared_library"': 'true', | ||
| 24 | + '"static_library"': 'false', | ||
| 25 | + }, | ||
| 26 | + 'is_debug': { | ||
| 27 | + '"Debug"': 'true', | ||
| 28 | + '"Release"': 'false', | ||
| 29 | + }, | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + DEFAULT_CONVERSION ={ | ||
| 33 | + '0': 'false', | ||
| 34 | + '1': 'true', | ||
| 35 | + '"ia32"': '"x86"', | ||
| 36 | + } | ||
| 37 | + | ||
| 38 | + def gyp_to_gn(key, value): | ||
| 39 | + return GYP_GN_CONVERSION.get(key, DEFAULT_CONVERSION).get(value, value) | ||
| 40 | + | ||
| 41 | + def as_json(kv): | ||
| 42 | + assert '=' in kv | ||
| 43 | + k, v = kv.split('=', 1) | ||
| 44 | + return k, json.loads(gyp_to_gn(k, v)) | ||
| 45 | + | ||
| 46 | + with open(sys.argv[1], 'w') as f: | ||
| 47 | + json.dump(dict(map(as_json, sys.argv[2:])), f) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments