diff --git a/src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs b/src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs index 8cf79f88e520d..a0ccb4400f075 100644 --- a/src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs +++ b/src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs @@ -3578,8 +3578,10 @@ private uint getJitFlags(ref CORJIT_FLAGS flags, uint sizeInBytes) break; } +#if READYTORUN if (targetArchitecture == TargetArchitecture.ARM && !_compilation.TypeSystemContext.Target.IsWindows) flags.Set(CorJitFlag.CORJIT_FLAG_RELATIVE_CODE_RELOCS); +#endif if (this.MethodBeingCompiled.IsUnmanagedCallersOnly) {