Commit 6b475f6
authored
Add linker description for wasm AOT (#1743)
* Add linker description for wasm AOT
This fixes build errors, where `System.IntPtr` wasn't fully preserved.
Example error:
runtime/src/mono/wasm/build/WasmApp.Native.targets(425,5): error : Precompiling failed for .../performance/artifacts/bin/MicroBenchmarks/Release/net6.0/Job-DGQDZJ/bin/net6.0/browser-wasm/publish/System.Private.CoreLib.dll: Unable to compile method 'object System.Enum:GetValue ()' due to: 'VTable setup of type System.IntPtr failed assembly:.../performance/artifacts/bin/MicroBenchmarks/Release/net6.0/Job-DGQDZJ/bin/net6.0/browser-wasm/publish/System.Private.CoreLib.dll type:IntPtr member:(null)'.
Also suppress linker warnings. There are too many of them (around 414)
and we cannot fix them currently as most of them comes
from the referenced assemblies.1 parent 2fefdb3 commit 6b475f6
File tree
3 files changed
+11
-2
lines changed- src/BenchmarkDotNet
- Templates
- Toolchains/MonoWasm
3 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
0 commit comments