Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link with EmccCompileOptimizationFlag==-Oz by default in release #55939

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

lewing
Copy link
Member

@lewing lewing commented Jul 19, 2021

Really fixes .wasm size regression #55608 (and a bit more). If we need -O0 for the tests we should enable it there not by default.

Assertions enabled by default only in WasmDevel now

@lewing lewing requested a review from marek-safar as a code owner July 19, 2021 17:01
@dotnet-issue-labeler
Copy link

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.

@lewing
Copy link
Member Author

lewing commented Jul 19, 2021

runtime 20210719.75 / Build iOSSimulator x86 Debug AllSubsets_Mono
❌ An error occurred while provisioning resources (Error Type: Disconnect).
❌ Received request to deprovision: The request was cancelled by the remote provider.
runtime 20210719.75 / Libraries Test Run release mono Linux x64 Debug / Send to Helix
❌[Log] .packages/microsoft.dotnet.helix.sdk/6.0.0-beta.21366.1/tools/azure-pipelines/AzurePipelines.MultiQueue.targets(43,5): error : (NETCORE_ENGINEERING_TELEMETRY=Test) Test System.Net.Sockets.Tests.ConnectTask.Connect_DualMode_DnsConnect_RetrievedEndPoints_Success has failed. Check the Test tab or this console log: https://helix.dot.net/api/2019-06-17/jobs/28de1adc-d7f7-4cb9-ae75-6285eeb23e5e/workitems/System.Net.Sockets.Tests/console

@radical
Copy link
Member

radical commented Jul 20, 2021

test failure for wasm/windows is #53957 .

@radical radical merged commit 04072ff into dotnet:main Jul 20, 2021
radical pushed a commit to radical/runtime that referenced this pull request Jul 22, 2021
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 <[email protected]>
@lewing lewing deleted the wasm-link-opt branch July 31, 2021 17:08
@ghost ghost locked as resolved and limited conversation to collaborators Aug 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants