Commit Graph

15 Commits

Author SHA1 Message Date
Saleem Abdulrasool
9029dc4b1b Driver: remove COFF from autolink-extract (NFC)
COFF has not used autolink-extract for autolinking.  It uses the PE/COFF
mechanism instead of `.drectve`.  This removes the dead code.
2019-08-07 07:42:04 -07:00
Saleem Abdulrasool
ae8ab310ca test: add CODEGENERATOR requirement (NFC)
This test uses the ARM backend code generator, ensure that we have it.
2019-03-02 12:45:49 -08:00
Jordan Rose
444436e313 [test] Don't actually emit a .so for autolink-extract tests (#17938)
Two tests used -emit-library with the same module name and without an
explicit -o path, meaning that the output would go into whatever
lit.py was using as its working directory. If the tests ran at exactly
the same time, they could contend for the output file. We don't actually
use the built library at all in the test, so just drop the -emit-library
entirely.

Also, remove an unused compilation step from another test, which just
checks what happens when swift-autolink-extract doesn't use any
arguments.

rdar://problem/39510413
2018-07-13 12:50:38 -07:00
Arnold Schwaighofer
c5024f96ee Revert "Disable test/AutolinkExtract/import.swift" 2018-03-22 09:07:23 -07:00
Arnold Schwaighofer
96153bbb33 Disable test/AutolinkExtract/import.swift
It started failing after #15408.

SR-7255
rdar://38751453
2018-03-22 07:47:59 -07:00
David Ungar
0d3020a0f6 enable the test 2018-03-01 07:34:14 -08:00
Xi Ge
3d793d25a6 [test] disable AutolinkExtract/import_archive.swift while investigating. rdar://37605557 (#14677)
We've seen this test failing on bot:
https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-16_04/2836/
2018-02-16 08:06:31 -08:00
Dmitri Gribenko
486cab447d tests: replace 'rm -rf %t && mkdir -p %t' with '%empty-directory(%t)'
These changes were made using a script.
2017-06-04 11:08:39 -07:00
Dmitri Gribenko
d175b3b66d Migrate FileCheck to %FileCheck in tests 2016-08-10 23:52:02 -07:00
Han Sangjin
0747503b0f [Autolink] Autolinking on COFF for Cygwin/MinGW
Cygwin and MinGW should use the autolink feature in the sameway of Linux
due to the linker's limit. Now swift-autolink-extract recognizes the
COFF format file for Cygwin/MinGW.
2016-08-07 07:20:50 +09:00
Saleem Abdulrasool
f221499bcc test: use llvm tools
Rather than relying on the system to provide ar and nm, use the LLVM equivalent
tools instead.  Since the build is already dependent on llvm and its tools, this
just ensures that the full set is self-contained.  NFC.
2016-06-03 10:17:58 -07:00
practicalswift
4b1e3e427e [gardening] Fix recently introduced typo: "a llvm" → "an llvm" 2016-04-03 09:41:30 +02:00
Saleem Abdulrasool
9571219927 driver: keep options ordered
The linker flags are order dependent.  Ensure that we preserve ordering.  Also
enhance it to support options which may be repeated (e.g. -rpath).
2016-04-01 17:18:25 -07:00
Chris Willmore
2088cd4373 swift-autolink-extract should look inside .a files.
Previously it just gave up when it saw anything other than an ELF .o file. We
could have it ignore .a files, but we might as well do the right thing.

<rdar://problem/23045632>
2015-11-10 12:48:37 -07:00
Graham Batty
078a558b26 Extract autolink information as a compile step.
Swift SVN r25510
2015-02-24 20:33:05 +00:00