Skip to content

Commit 2545932

Browse files
committed
---
yaml --- r: 349608 b: refs/heads/master-next c: ec64104 h: refs/heads/master
1 parent f368ebf commit 2545932

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
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: 930a142c203987a2d83f9f05f50ee06a71f50083
3+
refs/heads/master-next: ec6410488fef0c7c27e9b1dfcbe2f213a618304e
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
Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,29 @@
1+
set(framework "FrameworkABIBaseline")
12
swift_install_in_component(FILES "swift-api-checker.py"
23
DESTINATION "bin"
34
COMPONENT toolchain-tools)
45
swift_install_in_component(DIRECTORY "sdk-module-lists"
56
DESTINATION "bin"
67
COMPONENT toolchain-tools)
7-
swift_install_in_component(DIRECTORY "FrameworkABIBaseline"
8+
swift_install_in_component(DIRECTORY "${framework}"
89
DESTINATION "lib/swift"
910
COMPONENT toolchain-tools)
11+
12+
# Add symlink of FrameworkABIBaseline to the build dir. This ensures we can
13+
# find the baseline data from the same relative path as if we are running the
14+
# checker from the toolchain.
15+
set(SWIFTLIB_DIR "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib/swift")
16+
set(dest "${SWIFTLIB_DIR}/${framework}")
17+
set(source "${CMAKE_CURRENT_SOURCE_DIR}/${framework}")
18+
19+
if(CMAKE_SYSTEM_NAME STREQUAL Windows)
20+
set(CMAKE_SYMLINK_COMMAND copy)
21+
else()
22+
set(CMAKE_SYMLINK_COMMAND create_symlink)
23+
endif()
24+
add_custom_command(OUTPUT "${dest}"
25+
DEPENDS "${source}"
26+
COMMAND "${CMAKE_COMMAND}" "-E" "${CMAKE_SYMLINK_COMMAND}" "${source}" "${dest}")
27+
add_custom_target("symlink_abi_checker_data" ALL
28+
DEPENDS "${dest}"
29+
COMMENT "Symlinking ABI checker baseline data to ${dest}")

0 commit comments

Comments
 (0)