Skip to content

Commit f1327be

Browse files
authored
Merge pull request #22491 from lanza/osome
Fix swiftSwiftOnoneSupport.lib not being generated on windows debug builds
2 parents f1fcda0 + 4627ee7 commit f1327be

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

stdlib/public/SwiftOnoneSupport/CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ if(CMAKE_BUILD_TYPE STREQUAL Debug AND WINDOWS IN_LIST SWIFT_SDKS)
1717
# programs in Debug mode, and need the import library to be generated even if
1818
# nothing is exported. Because we will still generate the DLL, create an
1919
# empty import library.
20-
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/SwiftOnoneSupport.def
21-
"LIBRARY SwiftOnoneSupport\n"
22-
"EXPORTS")
20+
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/swiftSwiftOnoneSupport.def
21+
"LIBRARY swiftSwiftOnoneSupport\n"
22+
"EXPORTS\n")
2323
foreach(architecture ${SWIFT_SDK_WINDOWS_ARCHITECTURES})
2424
target_sources(swiftSwiftOnoneSupport-windows-${architecture} PRIVATE
25-
${CMAKE_CURRENT_BINARY_DIR}/SwiftOnoneSupport.def)
25+
${CMAKE_CURRENT_BINARY_DIR}/swiftSwiftOnoneSupport.def)
26+
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/swiftSwiftOnoneSupport.def
27+
PROPERTIES HEADER_FILE_ONLY TRUE)
2628
endforeach()
2729
endif()

0 commit comments

Comments
 (0)