Skip to content

Commit 7dad289

Browse files
committed
Make it build in retail
1 parent 004aa94 commit 7dad289

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/coreclr/vm/codeman.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,11 +1518,13 @@ void EEJitManager::SetCpuInfo()
15181518

15191519
uint32_t preferredVectorBitWidth = (CLRConfig::GetConfigValue(CLRConfig::EXTERNAL_PreferredVectorBitWidth) / 128) * 128;
15201520

1521+
#ifdef FEATURE_INTERPRETER
15211522
if (CLRConfig::GetConfigValue(CLRConfig::EXTERNAL_InterpMode) >= 2)
15221523
{
15231524
// Disable larger Vector<T> sizes when interpreter is enabled, and not compiling S.P.Corelib
15241525
preferredVectorBitWidth = 128;
15251526
}
1527+
#endif
15261528

15271529
if ((preferredVectorBitWidth == 0) && throttleVector512)
15281530
{

src/coreclr/vm/eeconfig.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ HRESULT EEConfig::sync()
454454

455455
pReadyToRunExcludeList = NULL;
456456

457+
#ifdef FEATURE_INTERPRETER
457458
#ifdef FEATURE_JIT
458459
LPWSTR interpreterConfig;
459460
IfFailThrow(CLRConfig::GetConfigValue(CLRConfig::EXTERNAL_Interpreter, &interpreterConfig));
@@ -470,14 +471,17 @@ HRESULT EEConfig::sync()
470471
}
471472
#else
472473
enableInterpreter = true;
473-
#endif
474+
#endif // FEATURE_JIT
475+
#endif // FEATURE_INTERPRETER
474476

475477
enableHWIntrinsic = CLRConfig::GetConfigValue(CLRConfig::EXTERNAL_EnableHWIntrinsic);
478+
#ifdef FEATURE_INTERPRETER
476479
if (CLRConfig::GetConfigValue(CLRConfig::EXTERNAL_InterpMode) >= 3)
477480
{
478481
// R2R mode 3 disables all hw intrinsics
479482
enableHWIntrinsic = 0;
480483
}
484+
#endif // FEATURE_INTERPRETER
481485

482486
#if defined(FEATURE_READYTORUN)
483487
fReadyToRun = CLRConfig::GetConfigValue(CLRConfig::EXTERNAL_ReadyToRun);

src/coreclr/vm/eeconfig.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,9 @@ class EEConfig
441441

442442
bool RuntimeAsync() const { LIMITED_METHOD_CONTRACT; return runtimeAsync; }
443443

444+
#ifdef FEATURE_INTERPRETER
444445
bool EnableInterpreter() const { LIMITED_METHOD_CONTRACT; return enableInterpreter; }
446+
#endif
445447
bool EnableHWIntrinsic() const { LIMITED_METHOD_CONTRACT; return enableHWIntrinsic; }
446448

447449
private: //----------------------------------------------------------------

0 commit comments

Comments
 (0)