Skip to content

Commit fed0f7f

Browse files
committed
fix -u syntax
1 parent ee2687f commit fed0f7f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkgs/native_toolchain_c/lib/src/cbuilder/linker_options.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class LinkerOptions {
5151
}) : _linkerFlags = <String>[
5252
...flags ?? [],
5353
'--strip-debug',
54-
if (symbols != null) ...symbols.expand((e) => ['-u=$e']),
54+
if (symbols != null) ...symbols.expand((e) => ['-u,$e']),
5555
].toList(),
5656
gcSections = true,
5757
_wholeArchiveSandwich = symbols == null,

pkgs/native_toolchain_c/test/clinker/treeshake_helper.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Future<void> runTreeshakeTests(
2121
assetName: '',
2222
sources: sources,
2323
linkerOptions: LinkerOptions.manual(
24-
flags: ['--strip-debug', '-u=my_other_func'],
24+
flags: ['--strip-debug', '-u,my_other_func'],
2525
gcSections: true,
2626
linkerScript: packageUri.resolve(
2727
'test/clinker/testfiles/linker/symbols.lds',

0 commit comments

Comments
 (0)