diff --git a/src/mono/wasm/build/WasmApp.Common.targets b/src/mono/wasm/build/WasmApp.Common.targets index 763371deb1cb6..df8a8a33cc710 100644 --- a/src/mono/wasm/build/WasmApp.Common.targets +++ b/src/mono/wasm/build/WasmApp.Common.targets @@ -706,7 +706,7 @@ DisableParallelAot="$(DisableParallelAot)" DedupAssembly="$(_WasmDedupAssembly)" CacheFilePath="$(_AOTCompilerCacheFile)" - LLVMDebug="dwarfdebug" + UseDwarfDebug="$(WasmNativeDebugSymbols)" LLVMPath="$(_WasmLLVMPathForAOT)" CollectTrimmingEligibleMethods="$(WasmStripILAfterAOT)" TrimmingEligibleMethodsOutputDirectory="$(_WasmIntermediateOutputPath)tokens"