@@ -885,7 +885,6 @@ else ()
885885 cmake_push_check_state()
886886 # TODO: we should probably make most of the checks in builtin-config depend on the target flags.
887887 set (BUILTIN_CFLAGS_${arch} ${BUILTIN_CFLAGS} )
888- set (BUILTIN_DEFS_${arch} ${BUILTIN_DEFS} )
889888 # CMAKE_REQUIRED_FLAGS must be a space separated string
890889 # Join BUILTIN_CFLAGS_${arch} and TARGET_${arch}_CFLAGS as a
891890 # space-separated string.
@@ -923,13 +922,6 @@ else ()
923922 if (COMPILER_RT_HAS_${arch} _BFLOAT16)
924923 list (APPEND ${arch} _SOURCES ${BF16_SOURCES} )
925924 endif ()
926- if (COMPILER_RT_HAS_MEXECUTE_ONLY_FLAG)
927- append_list_if(COMPILER_RT_EXECUTE_ONLY_CODE -mexecute-only BUILTIN_CFLAGS_${arch} )
928- append_list_if(COMPILER_RT_EXECUTE_ONLY_CODE COMPILER_RT_EXECUTE_ONLY_CODE BUILTIN_DEFS_${arch} )
929- elseif (COMPILER_RT_HAS_MPURE_CODE_FLAG)
930- append_list_if(COMPILER_RT_EXECUTE_ONLY_CODE -mpure-code BUILTIN_CFLAGS_${arch} )
931- append_list_if(COMPILER_RT_EXECUTE_ONLY_CODE COMPILER_RT_EXECUTE_ONLY_CODE BUILTIN_DEFS_${arch} )
932- endif ()
933925
934926 # Remove a generic C builtin when an arch-specific builtin is specified.
935927 filter_builtin_sources(${arch} _SOURCES ${arch} )
@@ -951,7 +943,7 @@ else ()
951943 ARCHS ${arch}
952944 DEPS ${deps_${arch} }
953945 SOURCES ${${arch} _SOURCES}
954- DEFS ${BUILTIN_DEFS_ ${arch} }
946+ DEFS ${BUILTIN_DEFS }
955947 CFLAGS ${BUILTIN_CFLAGS_${arch} }
956948 PARENT_TARGET builtins)
957949 cmake_pop_check_state()
@@ -1023,11 +1015,6 @@ if (COMPILER_RT_BUILD_CRT)
10231015 if (COMPILER_RT_HAS_FCF_PROTECTION_FLAG)
10241016 append_list_if(COMPILER_RT_ENABLE_CET -fcf-protection=full CRT_CFLAGS)
10251017 endif ()
1026- if (COMPILER_RT_HAS_MEXECUTE_ONLY_FLAG)
1027- append_list_if(COMPILER_RT_EXECUTE_ONLY_CODE -mexecute-only CRT_CFLAGS)
1028- elseif (COMPILER_RT_HAS_MPURE_CODE_FLAG)
1029- append_list_if(COMPILER_RT_EXECUTE_ONLY_CODE -mpure-code CRT_CFLAGS)
1030- endif ()
10311018
10321019 foreach (arch ${BUILTIN_SUPPORTED_ARCH} )
10331020 add_compiler_rt_runtime(clang_rt.crtbegin
0 commit comments