Skip to content

Various fixes to build with clang gnu-style driver on Windows#12305

Open
hjyamauchi wants to merge 1 commit intoswiftlang:stable/21.xfrom
hjyamauchi:clangcache
Open

Various fixes to build with clang gnu-style driver on Windows#12305
hjyamauchi wants to merge 1 commit intoswiftlang:stable/21.xfrom
hjyamauchi:clangcache

Conversation

@hjyamauchi
Copy link

No description provided.

@hjyamauchi
Copy link
Author

Please test with following PR:
swiftlang/swift#87089
GNOME/libxml2#39
@swift-ci Please smoke test

@hjyamauchi
Copy link
Author

Please test with following PR:
swiftlang/swift#87089
GNOME/libxml2#39
@swift-ci Please test

if("${CMAKE_C_COMPILER_FRONTEND_VARIANT}" STREQUAL "MSVC")
target_link_options(${name} PRIVATE "/DELAYLOAD:$<TARGET_FILE_BASE_NAME:liblldb>.dll")
else()
target_link_options(${name} PRIVATE "-Wl,--delayload:$<TARGET_FILE_BASE_NAME:liblldb>.dll")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use LINKER:--delayload:$<TARGET_FILE_BASE_NAME:liblldb>.dll instead?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't work: clang++: error: no such file or directory: 'LINKER,--delayload:liblldb.dll'

@hjyamauchi
Copy link
Author

@swift-ci please smoke test

@hjyamauchi
Copy link
Author

@swift-ci please test

@hjyamauchi hjyamauchi marked this pull request as ready for review February 10, 2026 20:17
@hjyamauchi hjyamauchi requested a review from a team as a code owner February 10, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants