swift icon indicating copy to clipboard operation
swift copied to clipboard

[Driver] Pass `-lld-allow-duplicate-weak` for coverage on Windows

Open hamishknight opened this issue 1 year ago • 4 comments
trafficstars

Legacy driver version of swiftlang/swift-driver#1655 + an integration test for both the legacy and new driver.

rdar://129337999

hamishknight avatar Jul 09 '24 11:07 hamishknight

Hrm looks like while Windows CI does build the new driver, it does not seem like it gets picked up:

<unknown>:0: warning: using (deprecated) legacy driver, Swift installation does not contain swift-driver at: 'T:\5\bin\swift-driver-new.exe'

Is that expected @compnerd?

hamishknight avatar Jul 09 '24 22:07 hamishknight

<unknown>:0: warning: using (deprecated) legacy driver, Swift installation does not contain swift-driver at: 'T:\5\bin\swift-driver-new.exe'

Is that expected @compnerd?

Yes, this is expected. We do not rename the binary, but we do use it with the "old" name in some places.

compnerd avatar Jul 10 '24 15:07 compnerd

Okay, well I have at least tested locally that the swift-driver change works as expected

hamishknight avatar Jul 11 '24 09:07 hamishknight

@swift-ci please test

hamishknight avatar Jul 12 '24 15:07 hamishknight

<unknown>:0: warning: using (deprecated) legacy driver, Swift installation does not contain swift-driver at: 'T:\5\bin\swift-driver-new.exe'

Is that expected @compnerd?

Yes, this is expected. We do not rename the binary, but we do use it with the "old" name in some places.

@compnerd is there a good reason for this? It seems like it's causing some tests to behave differently only in Windows builds.

artemcm avatar Jul 12 '24 16:07 artemcm

@compnerd is there a good reason for this? It seems like it's causing some tests to behave differently only in Windows builds.

Windows doesn't really do symlinks and the names of the files are important, especially for multi-call scenarios. IIRC, I had some trouble with the renamed binary working properly. If it works, a change to build.ps1 would be fine to do :)

compnerd avatar Jul 12 '24 16:07 compnerd

@swift-ci please test macOS

hamishknight avatar Jul 13 '24 14:07 hamishknight