Skip to content

[wasm] Use compile rsp instead of link, for compiling native files - #55848

Merged
radical merged 2 commits into
dotnet:mainfrom
radical:wasm-fix-logging
Jul 19, 2021
Merged

[wasm] Use compile rsp instead of link, for compiling native files#55848
radical merged 2 commits into
dotnet:mainfrom
radical:wasm-fix-logging

Conversation

@radical

@radicalradical commented Jul 16, 2021

Copy link
Copy Markdown
Member

.. and fix logging that broke recently.

tasks/Common/Utils.cs:

TaskLoggingHelper Utils.Logger is a static field, which must be set by
task else any methods in Utils, eg. RunProcess, silently fail to log
any messages. Also, this would be a problem when building multiple
projects in parallel, since the logger is a task-specific one.

Instead, we pass logger as an arg to all the methods.

`TaskLoggingHelper Utils.Logger` is a static field, which must be set by
task else any methods in `Utils`, eg. `RunProcess`, silently fail to log
any messages. Also, this would be a problem when building multiple
projects in parallel, since the logger is a task-specific one.
Instead, we pass logger as an arg to all the methods.
@radicalradical added arch-wasm WebAssembly architecture area-Build-mono labels Jul 16, 2021
@ghost

Copy link
Copy Markdown

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

Issue Details

.. and fix logging that broke recently.

Author:radical
Assignees:-
Labels:

arch-wasm, area-Build-mono

Milestone:-

@radical
radical requested a review from vargazJuly 16, 2021 17:48

@lewinglewing left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really like putting the logger first or how many arguments the helpers are accumulating but the changes fix real issues and the code is all part of the tests.

@radical

Copy link
Copy Markdown
MemberAuthor

I want to clean it up, but because the iOS/android tasks also use these, I have tried to only add stuff. I will clean it up over time, with future changes.

@radical

Copy link
Copy Markdown
MemberAuthor

Linux x64 test failure - System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_Http3_MsQuic.SendMoreThanStreamLimitRequestsConcurrently_LastWaits(streamLimit: 10) might be #53688 .

@radical

Copy link
Copy Markdown
MemberAuthor

Test failure is unrelated to this PR, as mentioned in the last comment.

@radical
radical merged commit 3301e9d into dotnet:mainJul 19, 2021
@radical
radical deleted the wasm-fix-logging branch July 19, 2021 05:55
radical added a commit to radical/runtime that referenced this pull request Jul 22, 2021
…otnet#55848)
.. and fix logging that broke recently.
`tasks/Common/Utils.cs`:
TaskLoggingHelper Utils.Logger is a static field, which must be set by
task else any methods in Utils, eg. RunProcess, silently fail to log
any messages. Also, this would be a problem when building multiple
projects in parallel, since the logger is a task-specific one.
Instead, we pass logger as an arg to all the methods.
(cherry picked from commit 3301e9d)
mmitche pushed a commit that referenced this pull request Jul 26, 2021
…raries (#56013)
* [wasm] Add support for using custom native libraries (#55797)
(cherry picked from commit d574b03)
* [wasm] Use compile rsp instead of link, for compiling native files (#55848)
.. and fix logging that broke recently.
`tasks/Common/Utils.cs`:
TaskLoggingHelper Utils.Logger is a static field, which must be set by
task else any methods in Utils, eg. RunProcess, silently fail to log
any messages. Also, this would be a problem when building multiple
projects in parallel, since the logger is a task-specific one.
Instead, we pass logger as an arg to all the methods.
(cherry picked from commit 3301e9d)
* Link with EmccCompileOptimizationFlag==-Oz by default in release (#55939)
(cherry picked from commit 04072ff)
* [wasm] Fix regression in compiling .bc -> .o files (#56063)
* [wasm] Add back --emit-llvm that got removed mistakenly, in an earlier commit
.. found thanks to Jerome Laban.
* [wasm] Set EmccCompile's messages to MessageImportance.Low by default.
.. and to MessageImportance.Normal if `$(EmccVerbose)==true`.
* [wasm] Quote filenames passed to emcc compile command line
* Add more blazorwasm tests - for debug/release, aot/relinking
* Bump sdk for workload testing to 6.0.100-rc.1.21370.2
* [wasm] Fix regression in compiling bitcode -> .o
The `-emit-llvm` arg has been incorrectly added, and removed from the
args used for compiling .bc->.o .
This commit fixes it, and adds a crude test for it, so we don't regress
again.
* Fix build
(cherry picked from commit 1d8ad03)
* [wasm] Bump sdk for workload testing to 6.0.100-preview.7.21372.19
Co-authored-by: Larry Ewing <lewing@microsoft.com>
@ghostghost locked as resolved and limited conversation to collaborators Aug 18, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasmWebAssembly architecturearea-Build-mono

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@radical@lewing