[SR-2408] Invoke the linker if there are any -Xlinker arguments, even if there are no inputs #45015
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
legacy driver
Area → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver project
Additional Detail from JIRA
md5: 1dd7deef8bb53da8f6d3dbb45389611e
Issue Description:
Sometimes it is useful to invoke the linker via swiftc (because of its extra behaviors), but needing to use -Xlinker to escape things so swiftc doesn’t muck with them. The driver should be willing to invoke the linker even when there are no input files if there are some Xlinker arguments.
The clang driver has a similar special case for linker args.
The text was updated successfully, but these errors were encountered: