diff options
author | Steve <hez2010@outlook.com> | 2023-11-14 11:08:43 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 20:08:43 -0600 |
commit | 6b94b29f55a765e44ee876609b72dbe49d81f143 (patch) | |
tree | 7f5f795f44606757dc0fdda9abb471d56245bd27 /lib/compilers/dotnet.ts | |
parent | 058dc15581536fff9a1aa36b5a6d546937aaac46 (diff) | |
download | compiler-explorer-6b94b29f55a765e44ee876609b72dbe49d81f143.tar.gz compiler-explorer-6b94b29f55a765e44ee876609b72dbe49d81f143.zip |
Disable diffable asm for dotnet 8.0+ by default (#5739)gh-9566
Since .NET 8.0, the JIT disasm no longer prints encoded bytes of
instructions by default, so we can disable diffable asm by default.
Diffstat (limited to 'lib/compilers/dotnet.ts')
-rw-r--r-- | lib/compilers/dotnet.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/compilers/dotnet.ts b/lib/compilers/dotnet.ts index ad5709447..3d602e180 100644 --- a/lib/compilers/dotnet.ts +++ b/lib/compilers/dotnet.ts @@ -326,7 +326,6 @@ class DotNetCompiler extends BaseCompiler { const normalizedName = name.trim().toUpperCase(); if ( normalizedName === 'DOTNET_JITDISASM' || - normalizedName === 'DOTNET_JITDUMP' || normalizedName === 'DOTNET_JITDISASMASSEMBILES' ) { continue; @@ -366,10 +365,10 @@ class DotNetCompiler extends BaseCompiler { } if (!overrideDiffable) { - toolOptions.push('--codegenopt', this.sdkMajorVersion < 8 ? 'JitDiffableDasm=1' : 'JitDisasmDiffable=1'); - envVarFileContents.push( - this.sdkMajorVersion < 8 ? 'DOTNET_JitDiffableDasm=1' : 'DOTNET_JitDisasmDiffable=1', - ); + if (this.sdkMajorVersion < 8) { + toolOptions.push('--codegenopt', 'JitDiffableDasm=1'); + envVarFileContents.push('DOTNET_JitDiffableDasm=1'); + } } this.setCompilerExecOptions(execOptions, programDir); |