mirror of
https://github.com/dart-lang/sdk
synced 2024-07-19 20:17:27 +00:00
Only create Goma's analyzer on Linux.
Bug: https://github.com/dart-lang/sdk/issues/33011 Change-Id: I9bc294fb4cda2b2c8b2d552feb18c7ce6af28695 Reviewed-on: https://dart-review.googlesource.com/53341 Reviewed-by: Zach Anderson <zra@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
parent
24dd9b4176
commit
61c226b4ea
|
@ -6571,6 +6571,8 @@ Dart_CreateAppAOTSnapshotAsAssembly(Dart_StreamingWriteCallback callback,
|
|||
return Api::NewError("AOT compilation is not supported on IA32.");
|
||||
#elif defined(TARGET_ARCH_DBC)
|
||||
return Api::NewError("AOT compilation is not supported on DBC.");
|
||||
#elif defined(TARGET_OS_WINDOWS)
|
||||
return Api::NewError("Assembly generation is not implemented for Windows.");
|
||||
#elif !defined(DART_PRECOMPILER)
|
||||
return Api::NewError(
|
||||
"This VM was built without support for AOT compilation.");
|
||||
|
@ -6609,6 +6611,8 @@ Dart_CreateVMAOTSnapshotAsAssembly(Dart_StreamingWriteCallback callback,
|
|||
return Api::NewError("AOT compilation is not supported on IA32.");
|
||||
#elif defined(TARGET_ARCH_DBC)
|
||||
return Api::NewError("AOT compilation is not supported on DBC.");
|
||||
#elif defined(TARGET_OS_WINDOWS)
|
||||
return Api::NewError("Assembly generation is not implemented for Windows.");
|
||||
#elif !defined(DART_PRECOMPILER)
|
||||
return Api::NewError(
|
||||
"This VM was built without support for AOT compilation.");
|
||||
|
|
|
@ -29,20 +29,22 @@ application_snapshot("generate_dartanalyzer_snapshot") {
|
|||
name = "dartanalyzer"
|
||||
}
|
||||
|
||||
aot_assembly("dartanalyzer_aot_assembly") {
|
||||
main_dart = "../../pkg/analyzer_cli/bin/analyzer.dart"
|
||||
name = "dartanalyzer"
|
||||
}
|
||||
if (current_os == "linux") {
|
||||
aot_assembly("dartanalyzer_aot_assembly") {
|
||||
main_dart = "../../pkg/analyzer_cli/bin/analyzer.dart"
|
||||
name = "dartanalyzer"
|
||||
}
|
||||
|
||||
# This target is for Goma. It should not be used in the SDK.
|
||||
executable("dartanalyzer_aot") {
|
||||
deps = [
|
||||
"../../runtime/bin:dart_precompiled_runtime_for_linking",
|
||||
":dartanalyzer_aot_assembly",
|
||||
]
|
||||
sources = [
|
||||
"$root_gen_dir/dartanalyzer.dart.S"
|
||||
]
|
||||
# This target is for Goma. It should not be used in the SDK.
|
||||
executable("dartanalyzer_aot") {
|
||||
deps = [
|
||||
"../../runtime/bin:dart_precompiled_runtime_for_linking",
|
||||
":dartanalyzer_aot_assembly",
|
||||
]
|
||||
sources = [
|
||||
"$root_gen_dir/dartanalyzer.dart.S"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
sdk_lib_files = exec_script("../../tools/list_dart_files.py",
|
||||
|
|
Loading…
Reference in a new issue