Skip to content

Commit 794a199

Browse files
authored
Revert "Enable MSVC standard conformance for JIT sources (#67608)" (#67674)
This reverts commit 548bb58.
1 parent 1c1cc62 commit 794a199

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

src/coreclr/jit/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_
1111
add_compile_options(-Wno-error)
1212
endif()
1313

14-
if (MSVC)
15-
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/permissive->)
16-
endif()
17-
1814
function(create_standalone_jit)
1915

2016
set(oneValueArgs TARGET OS ARCH)

src/coreclr/jit/unwind.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,32 @@ class UnwindBase
7979
{
8080
}
8181

82+
// TODO: How do we get the ability to access uwiComp without error on Clang?
83+
#if defined(DEBUG) && !defined(__GNUC__)
84+
85+
template <typename T>
86+
T dspPtr(T p)
87+
{
88+
return uwiComp->dspPtr(p);
89+
}
90+
91+
template <typename T>
92+
T dspOffset(T o)
93+
{
94+
return uwiComp->dspOffset(o);
95+
}
96+
97+
static const char* dspBool(bool b)
98+
{
99+
return (b) ? "true" : "false";
100+
}
101+
102+
#endif // DEBUG
103+
104+
//
105+
// Data
106+
//
107+
82108
Compiler* uwiComp;
83109
};
84110

0 commit comments

Comments
 (0)