File tree Expand file tree Collapse file tree 3 files changed +1
-25
lines changed Expand file tree Collapse file tree 3 files changed +1
-25
lines changed Original file line number Diff line number Diff line change @@ -61,11 +61,7 @@ endif()
61
61
# on the presence of symbols in libSupport to identify how the code was
62
62
# built and cause link failures for mismatches. Without linking that library,
63
63
# we get link failures regardless, so instead, this just disables the checks.
64
- if (CMAKE_VERSION VERSION_LESS 3.12 )
65
- append ("-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1" CMAKE_C_FLAGS CMAKE_CXX_FLAGS )
66
- else ()
67
- add_compile_definitions (LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1 )
68
- endif ()
64
+ add_compile_definitions ($< $< OR:$< COMPILE_LANGUAGE:C> ,$< COMPILE_LANGUAGE:CXX> > :LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1> )
69
65
70
66
set (SWIFT_STDLIB_LIBRARY_BUILD_TYPES )
71
67
if (SWIFT_BUILD_DYNAMIC_STDLIB )
Original file line number Diff line number Diff line change @@ -1137,14 +1137,6 @@ function(_add_swift_target_library_single target name)
1137
1137
MACCATALYST_BUILD_FLAVOR "${SWIFTLIB_SINGLE_MACCATALYST_BUILD_FLAVOR} "
1138
1138
)
1139
1139
1140
- if (SWIFTLIB_IS_STDLIB )
1141
- # We don't ever want to link against the ABI-breakage checking symbols
1142
- # in the standard library, runtime, or overlays because they only rely
1143
- # on the header parts of LLVM's ADT.
1144
- list (APPEND c_compile_flags
1145
- "-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1" )
1146
- endif ()
1147
-
1148
1140
if (SWIFTLIB_SINGLE_SDK STREQUAL WINDOWS )
1149
1141
if (libkind STREQUAL SHARED )
1150
1142
list (APPEND c_compile_flags -D_WINDLL )
Original file line number Diff line number Diff line change @@ -44,18 +44,6 @@ if("Thread" IN_LIST SWIFT_RUNTIME_USE_SANITIZERS)
44
44
list (APPEND CXX_LINK_FLAGS "-fsanitize=thread" )
45
45
endif ()
46
46
47
- # Do not enforce checks for LLVM's ABI-breaking build settings.
48
- # The Swift runtime uses some header-only code from LLVM's ADT classes,
49
- # but we do not want to link libSupport into the runtime. These checks rely
50
- # on the presence of symbols in libSupport to identify how the code was
51
- # built and cause link failures for mismatches. Without linking that library,
52
- # we get link failures regardless, so instead, this just disables the checks.
53
- if (CMAKE_VERSION VERSION_LESS 3.12 )
54
- append ("-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1" CMAKE_C_FLAGS CMAKE_CXX_FLAGS )
55
- else ()
56
- add_compile_definitions (LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1 )
57
- endif ()
58
-
59
47
# Compatibility libraries build in a special alternate universe that can't
60
48
# directly link to most OS runtime libraries, and have to access the
61
49
# runtime being patched only through public ABI.
You can’t perform that action at this time.
0 commit comments