Files
build_soong/cc
Pirama Arumuga Nainar 3c21c0b1d9 Enable lld for windows
Bug: http://b/110800681

The following flags that the binutils linkers support are not available
in lld for Windows:
  -soname
  --no-undefined
  -rpath

Windows also uses "import libraries", which are stub libraries used only
for linking.  The binutils linkers accepted a DLL and treated them as an
import library.  But lld issues the following error:

  lld-link: error: ...DLL: bad file type. Did you specify a DLL instead
  of an import library?

To resolve this, pass '-out-implib=libFoo.a' to lld when linking
libFoo.dll.  Add libFoo.a as an implicit output to the 'ld' build rule.

Rewrite the shared libraries for a library/binary to use the import
library instead of the DLL.  As a side-effect, this also (correctly)
uses the AdbWinApi.a that's alongside
development/host/windows/prebuilt/usb/AdbWinApi.dll

Test: Run Windows tests (go/android-llvm-windows-testing) and check
absence of regressions.

Change-Id: I15a178589aa6882caa6e7e38650cc6ef48109764
2019-03-20 21:07:47 +00:00
..
2019-03-20 03:21:10 +00:00
2018-11-19 15:26:14 -08:00
2019-03-15 03:04:52 +09:00
2019-03-20 21:07:47 +00:00
2019-03-20 21:07:47 +00:00
2019-03-15 03:04:52 +09:00
2017-10-19 22:39:32 +09:00
2018-10-09 02:16:58 +00:00
2019-02-13 23:32:51 +00:00
2018-10-30 09:55:48 +09:00
2017-11-17 11:22:04 -08:00
2019-03-20 21:07:47 +00:00
2019-03-20 21:07:47 +00:00
2018-12-20 14:33:02 +09:00
2019-03-19 04:20:52 +00:00
2019-02-07 22:31:04 +00:00
2019-02-06 18:41:27 -08:00
2019-02-06 01:52:41 +00:00
2019-02-19 12:05:02 -08:00
2016-08-01 14:36:22 -07:00
2019-01-24 18:59:29 +00:00
2019-02-13 23:32:51 +00:00
2019-02-13 23:32:51 +00:00
2019-03-04 18:11:53 +00:00
2018-10-09 02:16:58 +00:00
2019-03-15 03:04:52 +09:00
2018-12-20 14:33:02 +09:00