Commit Graph

6 Commits

Author SHA1 Message Date
Alastair Houghton
f9ec4793e9 [Test] Add linker_overridden feature.
When testing different linkers, it's sometimes useful to run the tests
with `SWIFT_DRIVER_TEST_OPTIONS=" -use-ld=<linker>"`.  If we do this,
it will break a handful of tests because they expect the compiler driver
to choose an appropriate linker automatically.

To avoid having these fail, detect when someone has done this, and
set a new feature, `linker_overridden`, then mark the tests in question
with `UNSUPPORTED: linker_overridden`.

rdar://123504095
2024-04-29 10:48:22 +01:00
Saleem Abdulrasool
de81a66e96 Merge pull request #25880 from compnerd/librarian-names
Driver: honour `-use-ld` on Windows static links
2019-06-30 13:09:08 -07:00
Saleem Abdulrasool
b3f0ba9d83 Driver: honour -use-ld on Windows static links
The librarian on Windows is a part of the linker.  Enabling `-use-ld=`
for driver for static linking on Windows enables the user to override
the linker.  This is particularly important for cross-linking Windows
from Linux where link.exe is not present as it is a part of the MSVC
toolset.
2019-06-29 20:50:56 -07:00
Saleem Abdulrasool
3811bd21b7 test: loosen the static-archive test
The test was overfitted to execution on Unix platforms.  Loosen it to
work on Windows as well.
2019-06-29 12:01:33 -07:00
Saleem Abdulrasool
f855764953 test: make the static library test actually test something
It was previously capturing the output but not checking it.  Actually
validate the output.  Fix the windows invocation check.  Ensure that we
disable the logo for the librarian on Windows.
2019-06-28 14:28:03 -07:00
Thomas Roughton
b34a1cbbc6 Driver: add -static flag for generating static archives 2019-06-17 12:49:03 +12:00