Skip to content

Commit 7d7c129

Browse files
aamcommit-bot@chromium.org
authored andcommitted
[build/win] Copy dart.lib only if dart binaries were built with exported symbols.
Flutter dart sdk is built without exported symbols, so no .lib is created. Addresses flutter/flutter#59687. Change-Id: Ia79bbb3b0b17377c417ed03fd7737000773bd18b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151660 Reviewed-by: Ryan Macnak <[email protected]> Commit-Queue: Alexander Aprelev <[email protected]>
1 parent 764e728 commit 7d7c129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ if (target_os != current_os && target_os == "fuchsia") {
410410
deps = [ "../runtime/bin:dart" ]
411411
dart_out = get_label_info("../runtime/bin:dart", "root_out_dir")
412412
sources = [ "$dart_out/${dart_stripped_binary}${executable_suffix}" ]
413-
if (is_win) {
413+
if (is_win && dart_lib_export_symbols) {
414414
sources += [ "$dart_out/dart.lib" ]
415415
}
416416
outputs = [ "$root_out_dir/dart-sdk/bin/{{source_file_part}}" ]

0 commit comments

Comments
 (0)