-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wasm] Move some defaults out of the templates (#72626)
* Move some defaults out of the template * Fix build for template tests, and satellite assembly tests - Running with `node` fails when relinking, or AOT'ing in Debug config - this seems to be when linking is done with `-O0` - it seems to work fine with emsdk `3.1.7` though - For `Debug` config we automatically set `_WasmDevel=true`, which then sets `-O0` - This is not seen on CI, since we don't run non-template tests in `Debug`. But for local runs, we do. - The template tests are explicitly run for Debug, and Release, and they break because of this - So, setting `_WasmDevel=false` for now, till this gets fixed - Also, set `OutputType=Exe` in the project file itself, so it gets set before `Microsoft.NET.Sdk` gets imported, or early enough. * Wasm.Build.Tests: add relinking tests for templates * Revert unintended change * Fix WasmTemplateTests on windows * Wasm.Build.Tests: Explicitly allow web server port in chrome, on windows Fixes #72436 Co-authored-by: Ankit Jain <[email protected]>
- Loading branch information
Showing
12 changed files
with
87 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
<PropertyGroup> | ||
<WasmNativeWorkload>true</WasmNativeWorkload> | ||
</PropertyGroup> | ||
</Project> | ||
</Project> |
9 changes: 9 additions & 0 deletions
9
src/mono/nuget/Microsoft.NET.Runtime.WebAssembly.Sdk/Sdk/Sdk.props
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Project> | ||
<PropertyGroup Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' != 'true'"> | ||
<TargetArchitecture>wasm</TargetArchitecture> | ||
<TargetOS>browser</TargetOS> | ||
<UseMonoRuntime>true</UseMonoRuntime> | ||
<OutputType>Exe</OutputType> | ||
<PublishTrimmed Condition="'$(PublishTrimmed)' == ''">true</PublishTrimmed> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters