diff --git a/eng/testing/tests.wasm.targets b/eng/testing/tests.wasm.targets
index ebe58971b1e27..f3894923e086f 100644
--- a/eng/testing/tests.wasm.targets
+++ b/eng/testing/tests.wasm.targets
@@ -176,7 +176,8 @@
<_MainAssemblyPath Condition="'%(WasmAssembliesToBundle.FileName)' == $(AssemblyName) and '%(WasmAssembliesToBundle.Extension)' == '.dll'">%(WasmAssembliesToBundle.Identity)
$([System.IO.Path]::ChangeExtension($(_MainAssemblyPath), '.runtimeconfig.json'))
- -Oz -Wl,-O0 -Wl,-lto-O0
+ -O1 -Wl,-O0 -Wl,-lto-O0
+ true