File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
branches/master-next/utils/api_checker Expand file tree Collapse file tree 2 files changed +22
-2
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: 930a142c203987a2d83f9f05f50ee06a71f50083
3
+ refs/heads/master-next: ec6410488fef0c7c27e9b1dfcbe2f213a618304e
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
1
+ set (framework "FrameworkABIBaseline" )
1
2
swift_install_in_component (FILES "swift-api-checker.py"
2
3
DESTINATION "bin"
3
4
COMPONENT toolchain-tools )
4
5
swift_install_in_component (DIRECTORY "sdk-module-lists"
5
6
DESTINATION "bin"
6
7
COMPONENT toolchain-tools )
7
- swift_install_in_component (DIRECTORY "FrameworkABIBaseline "
8
+ swift_install_in_component (DIRECTORY "${framework} "
8
9
DESTINATION "lib/swift"
9
10
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} " )
You can’t perform that action at this time.
0 commit comments