From 9b65e23a67c6130a28f848e42b6088820b7e4e59 Mon Sep 17 00:00:00 2001 From: Pavel Savara Date: Fri, 5 May 2023 19:03:24 +0200 Subject: [PATCH] [browser] prevent from disabling interp optimizations (#85792) * [wasm] Don't enable debugging for library tests by default @pavelsavara and @brzvlad found that some tests like System.Collections.Immutable.Tests run slower because the runtime has debugging enabled which causes the interpreter to disable optimizations. Reason: - Some tests depend on debugger attributes, and thus set `$(DebuggerSupport)=true` to preserve them while linking. - Which sets `$(WasmDebugLevel)=-1`. But setting `$(WasmDebugLevel)<0` enables debugging support in the runtime. - So, set this to `<0` only when building with `Configuration=Debug` . * set it to zero only on CI --------- Co-authored-by: Ankit Jain --- eng/testing/tests.browser.targets | 11 ++++++++++- eng/testing/tests.wasi.targets | 11 ++++++++++- eng/testing/tests.wasm.targets | 14 ++++++++++++++ 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/eng/testing/tests.browser.targets b/eng/testing/tests.browser.targets index ac4796a..d358982 100644 --- a/eng/testing/tests.browser.targets +++ b/eng/testing/tests.browser.targets @@ -160,7 +160,16 @@ true true - -1 + + 0 diff --git a/eng/testing/tests.wasi.targets b/eng/testing/tests.wasi.targets index 87dbe5f..14b217b 100644 --- a/eng/testing/tests.wasi.targets +++ b/eng/testing/tests.wasi.targets @@ -90,7 +90,16 @@ $(InvariantGlobalization) true - -1 + + 0 diff --git a/eng/testing/tests.wasm.targets b/eng/testing/tests.wasm.targets index 9c01950..4d6abbf 100644 --- a/eng/testing/tests.wasm.targets +++ b/eng/testing/tests.wasm.targets @@ -6,6 +6,20 @@ false $(BundleTestAppTargets);BundleTestWasmApp true + + -1 + + reset-to-zero + full