Skip to content

Commit 3708d1a

Browse files
committed
Revert "Change win-x86 configuration to build with FEATURE_EH_FUNCLETS"
This reverts commit 73c21b5.
1 parent ca2f490 commit 3708d1a

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

src/coreclr/clr.featuredefines.props

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<PropertyGroup>
33
<FeatureCoreCLR>true</FeatureCoreCLR>
44
<FeaturePerfTracing>true</FeaturePerfTracing>
5-
<FeatureEHFunclets>true</FeatureEHFunclets>
65
<ProfilingSupportedBuild>true</ProfilingSupportedBuild>
76
</PropertyGroup>
87

@@ -23,6 +22,10 @@
2322
<FeatureObjCMarshal>true</FeatureObjCMarshal>
2423
</PropertyGroup>
2524

25+
<PropertyGroup Condition="!('$(TargetsWindows)' == 'true' AND '$(Platform)' == 'x86')">
26+
<FeatureEHFunclets>true</FeatureEHFunclets>
27+
</PropertyGroup>
28+
2629
<PropertyGroup Condition="('$(Platform)' == 'x64' OR '$(Platform)' == 'arm64') AND ('$(Configuration)' == 'debug' OR '$(Configuration)' == 'checked')">
2730
<FeatureInterpreter>true</FeatureInterpreter>
2831
</PropertyGroup>

src/coreclr/clrdefinitions.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ if(CLR_CMAKE_TARGET_WIN32)
206206
endif(CLR_CMAKE_TARGET_ARCH_AMD64 OR CLR_CMAKE_TARGET_ARCH_I386)
207207
endif(CLR_CMAKE_TARGET_WIN32)
208208

209-
add_compile_definitions($<$<NOT:$<BOOL:$<TARGET_PROPERTY:IGNORE_DEFAULT_TARGET_ARCH>>>:FEATURE_EH_FUNCLETS>)
209+
if (NOT CLR_CMAKE_TARGET_ARCH_I386 OR NOT CLR_CMAKE_TARGET_WIN32)
210+
add_compile_definitions($<$<NOT:$<BOOL:$<TARGET_PROPERTY:IGNORE_DEFAULT_TARGET_ARCH>>>:FEATURE_EH_FUNCLETS>)
211+
endif (NOT CLR_CMAKE_TARGET_ARCH_I386 OR NOT CLR_CMAKE_TARGET_WIN32)
210212

211213
if (CLR_CMAKE_TARGET_WIN32 AND (CLR_CMAKE_TARGET_ARCH_AMD64 OR CLR_CMAKE_TARGET_ARCH_ARM64))
212214
add_definitions(-DFEATURE_SPECIAL_USER_MODE_APC)

src/coreclr/jit/targetx86.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
// target
5353
#define FEATURE_EH 1 // To aid platform bring-up, eliminate exceptional EH clauses (catch, filter,
5454
// filter-handler, fault) and directly execute 'finally' clauses.
55+
#if !defined(UNIX_X86_ABI)
56+
#define FEATURE_EH_WINDOWS_X86 1 // Enable support for SEH regions
57+
#endif
5558
#define ETW_EBP_FRAMED 1 // if 1 we cannot use EBP as a scratch register and must create EBP based
5659
// frames for most methods
5760
#define CSE_CONSTS 1 // Enable if we want to CSE constants

0 commit comments

Comments
 (0)