File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
trunk/stdlib/public/SwiftShims Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: e46c88da0d7780b2c1837c7e2daa9baebbae2e1a
2
+ refs/heads/master: 901dd8346b3c9a26a038e740d77b69ddffdda578
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
Original file line number Diff line number Diff line change @@ -87,11 +87,18 @@ endif()
87
87
string (REGEX MATCH "[0-9]+\\ .[0-9]+(\\ .[0-9]+)?" CLANG_VERSION
88
88
"${LLVM_PACKAGE_VERSION} " )
89
89
if (NOT SWIFT_INCLUDE_TOOLS AND SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER )
90
- execute_process (COMMAND ${CMAKE_C_COMPILER} -print-resource-dir
91
- OUTPUT_VARIABLE clang_headers_location
92
- OUTPUT_STRIP_TRAILING_WHITESPACE
93
- ERROR_QUIET )
94
- message (STATUS "using clang resource directory: ${clang_headers_location} " )
90
+ if (SWIFT_COMPILER_IS_MSVC_LIKE )
91
+ execute_process (COMMAND ${CMAKE_C_COMPILER} /clang:-print-resource-dir
92
+ OUTPUT_VARIABLE clang_headers_location
93
+ OUTPUT_STRIP_TRAILING_WHITESPACE
94
+ ERROR_QUIET )
95
+ else ()
96
+ execute_process (COMMAND ${CMAKE_C_COMPILER} -print-resource-dir
97
+ OUTPUT_VARIABLE clang_headers_location
98
+ OUTPUT_STRIP_TRAILING_WHITESPACE
99
+ ERROR_QUIET )
100
+ endif ()
101
+ message (STATUS "Using clang Resource Directory: ${clang_headers_location} " )
95
102
else ()
96
103
set (clang_headers_location "${LLVM_LIBRARY_OUTPUT_INTDIR} /clang/${CLANG_VERSION} " )
97
104
endif ()
You can’t perform that action at this time.
0 commit comments