File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
branches/master-next/stdlib/toolchain Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3
- refs/heads/master-next: f2c980c9093d3fa0a040ca8f45a23a346c6b8fb5
3
+ refs/heads/master-next: 712b24f69a564d92b5abe944503132b2475c78ed
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
6
6
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07
Original file line number Diff line number Diff line change @@ -41,6 +41,18 @@ if("Thread" IN_LIST SWIFT_RUNTIME_USE_SANITIZERS)
41
41
list (APPEND CXX_LINK_FLAGS "-fsanitize=thread" )
42
42
endif ()
43
43
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
+
44
56
45
57
add_subdirectory (legacy_layouts )
46
58
add_subdirectory (Compatibility50 )
You can’t perform that action at this time.
0 commit comments