Skip to content

Commit 23ca2a1

Browse files
committed
---
yaml --- r: 349459 b: refs/heads/master-next c: 712b24f h: refs/heads/master i: 349457: 26e592a 349455: e2bd467
1 parent b611f99 commit 23ca2a1

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3-
refs/heads/master-next: f2c980c9093d3fa0a040ca8f45a23a346c6b8fb5
3+
refs/heads/master-next: 712b24f69a564d92b5abe944503132b2475c78ed
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
66
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07

branches/master-next/stdlib/toolchain/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ if("Thread" IN_LIST SWIFT_RUNTIME_USE_SANITIZERS)
4141
list(APPEND CXX_LINK_FLAGS "-fsanitize=thread")
4242
endif()
4343

44+
# Do not enforce checks for LLVM's ABI-breaking build settings.
45+
# The Swift runtime uses some header-only code from LLVM's ADT classes,
46+
# but we do not want to link libSupport into the runtime. These checks rely
47+
# on the presence of symbols in libSupport to identify how the code was
48+
# built and cause link failures for mismatches. Without linking that library,
49+
# we get link failures regardless, so instead, this just disables the checks.
50+
if(CMAKE_VERSION VERSION_LESS 3.12)
51+
append("-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
52+
else()
53+
add_compile_definitions(LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1)
54+
endif()
55+
4456

4557
add_subdirectory(legacy_layouts)
4658
add_subdirectory(Compatibility50)

0 commit comments

Comments
 (0)