File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
3_bidirectional_cxx_interop/cmake/modules Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 22
22
hash : 2dd48ccd3e3d872ee4cc916f3f4e24812612421007e895f82bf9fc7e49831d62
23
23
- version : 3.30.8
24
24
hash : adc81f2944e6f86b44e86acea3abea1651ed7890206933484b8b74ac1280314f
25
+ - version : 4.0.1
26
+ hash : d66c11c010588c8256ee20a26b45977cd5b2f4aee2b742d4b8a353769940d147
25
27
steps :
26
28
- name : Clone Repo
27
29
uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -34,11 +34,11 @@ function(_swift_generate_cxx_header target header)
34
34
list (TRANSFORM ARG_SEARCH_PATHS PREPEND "-I" )
35
35
endif ()
36
36
37
- if (APPLE )
37
+ if (APPLE AND CMAKE_OSX_SYSROOT )
38
38
set (SDK_FLAGS "-sdk" "${CMAKE_OSX_SYSROOT} " )
39
39
elseif (WIN32 )
40
40
set (SDK_FLAGS "-sdk" "$ENV{SDKROOT} " )
41
- elseif (DEFINED ${ CMAKE_SYSROOT} )
41
+ elseif (CMAKE_SYSROOT )
42
42
set (SDK_FLAGS "-sdk" "${CMAKE_SYSROOT} " )
43
43
endif ()
44
44
@@ -54,7 +54,7 @@ function(_swift_generate_cxx_header target header)
54
54
DEPENDS ${_SwiftSources}
55
55
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
56
56
COMMAND
57
- ${CMAKE_Swift_COMPILER} -frontend - typecheck
57
+ ${CMAKE_Swift_COMPILER} -typecheck
58
58
${ARG_SEARCH_PATHS}
59
59
${_SwiftSources}
60
60
${SDK_FLAGS}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ endfunction()
26
26
function (_setup_swift_paths )
27
27
# If we haven't set the swift library search paths, do that now
28
28
if (NOT SWIFT_LIBRARY_SEARCH_PATHS )
29
- if (APPLE )
29
+ if (CMAKE_OSX_SYSROOT )
30
30
set (SDK_FLAGS "-sdk" "${CMAKE_OSX_SYSROOT} " )
31
31
endif ()
32
32
You can’t perform that action at this time.
0 commit comments