mirror of
https://github.com/dart-lang/sdk
synced 2024-09-04 16:03:44 +00:00
[sdk] no longer generate <sdk>/lib/_internal/strong.sum
Change-Id: I54d9e8751508db2602a142d0977c4e3b9381ac33 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/289443 Reviewed-by: Ben Konyi <bkonyi@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Devon Carew <devoncarew@google.com>
This commit is contained in:
parent
a62bfec074
commit
d9fdec8129
20
sdk/BUILD.gn
20
sdk/BUILD.gn
|
@ -54,7 +54,6 @@ declare_args() {
|
||||||
# ........kernel_worker.dart.snapshot
|
# ........kernel_worker.dart.snapshot
|
||||||
# ......resources/
|
# ......resources/
|
||||||
# ........dartdoc/
|
# ........dartdoc/
|
||||||
# ...........packages
|
|
||||||
# ..........resources/
|
# ..........resources/
|
||||||
# ..........templates/
|
# ..........templates/
|
||||||
# ....include/
|
# ....include/
|
||||||
|
@ -64,7 +63,6 @@ declare_args() {
|
||||||
# ....lib/
|
# ....lib/
|
||||||
# ......libraries.json
|
# ......libraries.json
|
||||||
# ......_internal/
|
# ......_internal/
|
||||||
# ........strong.sum
|
|
||||||
# ........dart2js_platform.dill
|
# ........dart2js_platform.dill
|
||||||
# ........dart2js_platform_unsound.dill
|
# ........dart2js_platform_unsound.dill
|
||||||
# ........dart2js_server_platform.dill
|
# ........dart2js_server_platform.dill
|
||||||
|
@ -441,18 +439,6 @@ group("copy_dartdoc_files") {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
# This rule copies analyzer summaries to lib/_internal
|
|
||||||
copy("copy_analysis_summaries") {
|
|
||||||
visibility = [ ":create_common_sdk" ]
|
|
||||||
deps = [
|
|
||||||
":copy_libraries",
|
|
||||||
"../utils/dartanalyzer:generate_summary_strong",
|
|
||||||
]
|
|
||||||
sources = [ "$root_gen_dir/strong.sum" ]
|
|
||||||
outputs =
|
|
||||||
[ "$root_out_dir/$dart_sdk_output/lib/_internal/{{source_file_part}}" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
# This rule copies dill files to lib/_internal.
|
# This rule copies dill files to lib/_internal.
|
||||||
copy("copy_vm_dill_files") {
|
copy("copy_vm_dill_files") {
|
||||||
visibility = [ ":create_common_sdk" ]
|
visibility = [ ":create_common_sdk" ]
|
||||||
|
@ -628,10 +614,7 @@ group("copy_libraries") {
|
||||||
|
|
||||||
# This rule writes the version file.
|
# This rule writes the version file.
|
||||||
action("write_version_file") {
|
action("write_version_file") {
|
||||||
visibility = [
|
visibility = [ ":create_common_sdk" ]
|
||||||
":create_common_sdk",
|
|
||||||
"../utils/dartanalyzer:generate_summary_strong",
|
|
||||||
]
|
|
||||||
inputs = [
|
inputs = [
|
||||||
"../tools/VERSION",
|
"../tools/VERSION",
|
||||||
"$default_git_folder/logs/HEAD",
|
"$default_git_folder/logs/HEAD",
|
||||||
|
@ -699,7 +682,6 @@ group("create_common_sdk") {
|
||||||
":create_sdk",
|
":create_sdk",
|
||||||
]
|
]
|
||||||
public_deps = [
|
public_deps = [
|
||||||
":copy_analysis_summaries",
|
|
||||||
":copy_api_readme",
|
":copy_api_readme",
|
||||||
":copy_dart",
|
":copy_dart",
|
||||||
":copy_dartdev_dill_files",
|
":copy_dartdev_dill_files",
|
||||||
|
|
|
@ -8,45 +8,11 @@ import("../application_snapshot.gni")
|
||||||
import("../create_timestamp.gni")
|
import("../create_timestamp.gni")
|
||||||
|
|
||||||
group("dartanalyzer") {
|
group("dartanalyzer") {
|
||||||
deps = [
|
deps = [ ":generate_dartanalyzer_snapshot" ]
|
||||||
":generate_dartanalyzer_snapshot",
|
|
||||||
":generate_summary_strong",
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
application_snapshot("generate_dartanalyzer_snapshot") {
|
application_snapshot("generate_dartanalyzer_snapshot") {
|
||||||
main_dart = "../../pkg/analyzer_cli/bin/analyzer.dart"
|
main_dart = "../../pkg/analyzer_cli/bin/analyzer.dart"
|
||||||
training_args = [
|
training_args = [ "--help" ]
|
||||||
"--help",
|
|
||||||
# TODO(34616): This is broken on Fuchsia.
|
|
||||||
# "--dart-sdk=" + rebase_path("../../sdk/"),
|
|
||||||
# "--train-snapshot",
|
|
||||||
# rebase_path("../../tests/language_2/first_test.dart")
|
|
||||||
]
|
|
||||||
name = "dartanalyzer"
|
name = "dartanalyzer"
|
||||||
}
|
}
|
||||||
|
|
||||||
sdk_root = "../../sdk"
|
|
||||||
|
|
||||||
create_timestamp_file("sdk_lib_files") {
|
|
||||||
path = rebase_path("$sdk_root/lib")
|
|
||||||
output = "$target_gen_dir/sdk_lib_files.stamp"
|
|
||||||
}
|
|
||||||
|
|
||||||
prebuilt_dart_action("generate_summary_strong") {
|
|
||||||
deps = [
|
|
||||||
":sdk_lib_files",
|
|
||||||
"../../sdk:copy_libraries",
|
|
||||||
"../../sdk:write_version_file",
|
|
||||||
]
|
|
||||||
script = "../../pkg/analyzer/tool/summary/build_sdk_summaries.dart"
|
|
||||||
packages = "../../.dart_tool/package_config.json"
|
|
||||||
output = "$root_gen_dir/strong.sum"
|
|
||||||
outputs = [ output ]
|
|
||||||
vm_args = [ "-Dsdk_hash=$sdk_hash" ]
|
|
||||||
args = [
|
|
||||||
"build",
|
|
||||||
rebase_path(output),
|
|
||||||
rebase_path("$root_out_dir/$dart_sdk_output"),
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue