Skip to content

Commit

Permalink
fix: Report failure properly on linker errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Nov 1, 2022
1 parent 0670842 commit 9f8cc14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.Wasm.Packager/packager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ class WasmOptions {
var linkerSearchPaths = root_search_paths.Concat(bcl_prefixes).Distinct().Select(p => $"-d \"{p}\" ");

var tunerCommand = is_netcore ? $"dotnet $tools_dir{Path.DirectorySeparatorChar}wasm-tuner.dll" : "mono $tools_dir/wasm-tuner.exe";
var exitCommand = is_windows ? "" : "|| exit 1";
var exitCommand = is_windows ? failOnError : "|| exit 1";

linker_args.Add($"-out ./linker-out --deterministic --disable-opt unreachablebodies");
linker_args.Add($"--strip-link-attributes");
Expand Down

0 comments on commit 9f8cc14

Please sign in to comment.