Skip to content

[wasm] Move some defaults out of the templates#72626

Merged
lewing merged 12 commits intodotnet:mainfrom
lewing:wasm-sdk
Jul 25, 2022
Merged

[wasm] Move some defaults out of the templates#72626
lewing merged 12 commits intodotnet:mainfrom
lewing:wasm-sdk

Conversation

@lewing
Copy link
Copy Markdown
Member

@lewing lewing commented Jul 21, 2022

Also fixes #72436 .

@ghost
Copy link
Copy Markdown

ghost commented Jul 21, 2022

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@ghost ghost assigned lewing Jul 21, 2022
@lewing lewing added the arch-wasm WebAssembly architecture label Jul 21, 2022
@ghost
Copy link
Copy Markdown

ghost commented Jul 21, 2022

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

null

Author: lewing
Assignees: lewing
Labels:

arch-wasm

Milestone: -

lewing and others added 6 commits July 21, 2022 17:52
- 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.
@radical
Copy link
Copy Markdown
Member

radical commented Jul 22, 2022

/azp run runtime-wasm

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@pavelsavara
Copy link
Copy Markdown
Member

I noticed that we now have console proxy in the production code

export function setup_proxy_console(id: string, originalConsole: Console, origin: string): void {

perhaps we could add it to INTERNAL and remove it from test-main.js and app-support.js now

@radical
Copy link
Copy Markdown
Member

radical commented Jul 25, 2022

This is ready I believe.

@lewing lewing marked this pull request as ready for review July 25, 2022 21:06
@lewing
Copy link
Copy Markdown
Member Author

lewing commented Jul 25, 2022

Might be some follow up still but this is an improvement.

@lewing lewing merged commit ed2a5a1 into dotnet:main Jul 25, 2022
@lewing lewing deleted the wasm-sdk branch July 25, 2022 22:56
@ghost ghost locked as resolved and limited conversation to collaborators Aug 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-Build-mono

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[wasm][wbt] - Microsoft.Playwright.PlaywrightException : net::ERR_UNSAFE_PORT

3 participants