<feed xmlns='http://www.w3.org/2005/Atom'>
<title>build_soong/cc/binary.go, branch android-10.0.0_r6</title>
<subtitle>Fork of build/soong
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/'/>
<entry>
<title>Allow arch-specific `symlink_preferred_arch` properties.</title>
<updated>2019-06-07T17:00:23+00:00</updated>
<author>
<name>Roland Levillain</name>
<email>rpl@google.com</email>
</author>
<published>2019-06-05T18:20:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=0dbeb666bc176e8ed15c42b49085b920bc698ca3'/>
<id>0dbeb666bc176e8ed15c42b49085b920bc698ca3</id>
<content type='text'>
(cherry picked from commit d9bf9be00785d10be8b961843b53b004d0c600d4)

Test: m
Bug: 133864678
Change-Id: Ia6e62156adda2b3a51220552bbe4dab738753674
Merged-In: Ia6e62156adda2b3a51220552bbe4dab738753674
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit d9bf9be00785d10be8b961843b53b004d0c600d4)

Test: m
Bug: 133864678
Change-Id: Ia6e62156adda2b3a51220552bbe4dab738753674
Merged-In: Ia6e62156adda2b3a51220552bbe4dab738753674
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Enable lld for windows"</title>
<updated>2019-04-03T00:59:14+00:00</updated>
<author>
<name>Josh Gao</name>
<email>jmgao@google.com</email>
</author>
<published>2019-04-03T00:53:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=61166dc047ff30869667a58cf0daca68d20e38ab'/>
<id>61166dc047ff30869667a58cf0daca68d20e38ab</id>
<content type='text'>
This reverts commit 3c21c0b1d9bab0d51100ca03aa157a1d8545c2ea.

Reason for revert: appears to break AdbWinUsb.dll usage by fastboot (and adb?)

Bug: http://b/129420419
Bug: http://b/110800681
Change-Id: I36d6d87f2e830e08e257ab42d470e49cdbb95819
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 3c21c0b1d9bab0d51100ca03aa157a1d8545c2ea.

Reason for revert: appears to break AdbWinUsb.dll usage by fastboot (and adb?)

Bug: http://b/129420419
Bug: http://b/110800681
Change-Id: I36d6d87f2e830e08e257ab42d470e49cdbb95819
</pre>
</div>
</content>
</entry>
<entry>
<title>Include libprofile-extras to all coverage variants</title>
<updated>2019-03-29T15:56:42+00:00</updated>
<author>
<name>Pirama Arumuga Nainar</name>
<email>pirama@google.com</email>
</author>
<published>2019-03-25T17:21:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=65c95ff1fb3e50927f49e0e95c1f980af850f034'/>
<id>65c95ff1fb3e50927f49e0e95c1f980af850f034</id>
<content type='text'>
Bug: http://b/128524141

Include libprofile-extras (defined in system/extras/toolchain-extras) to
all modules that need a coverage variant.  Also add
'-uinit_profile_extras' when linking with coverage.  This causes the
setup code in libprofile-extras to be linked into binaries/libraries
with coverage enabled.

We add the static library to the non-coverage variants as well but is a
no-op for them (since the '-u...' flag is not added for them).

Adding this dependency creates several circular dependencies since
coverage variants were being created for other module types that never
had any compilation or linking done during the build.  This change stops
creating coverage variants for toolchain_library, cc_prebuilt_library_*,
cc_library_headers module types (by adding a function to the linker
interface to specify whether native coverage is enabled).

Test: m NATIVE_COVERAGE=true COVERAGE_PATHS=*
Test: blueline_coverage target in internal branch (using forrest)
Change-Id: I5db876eb953639a55ba007248dd24e497f987730
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: http://b/128524141

Include libprofile-extras (defined in system/extras/toolchain-extras) to
all modules that need a coverage variant.  Also add
'-uinit_profile_extras' when linking with coverage.  This causes the
setup code in libprofile-extras to be linked into binaries/libraries
with coverage enabled.

We add the static library to the non-coverage variants as well but is a
no-op for them (since the '-u...' flag is not added for them).

Adding this dependency creates several circular dependencies since
coverage variants were being created for other module types that never
had any compilation or linking done during the build.  This change stops
creating coverage variants for toolchain_library, cc_prebuilt_library_*,
cc_library_headers module types (by adding a function to the linker
interface to specify whether native coverage is enabled).

Test: m NATIVE_COVERAGE=true COVERAGE_PATHS=*
Test: blueline_coverage target in internal branch (using forrest)
Change-Id: I5db876eb953639a55ba007248dd24e497f987730
</pre>
</div>
</content>
</entry>
<entry>
<title>Soong: Add synopsis to several modules under cc package.</title>
<updated>2019-03-25T14:21:29+00:00</updated>
<author>
<name>Patrice Arruda</name>
<email>patricearruda@google.com</email>
</author>
<published>2019-03-20T00:00:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=c249c718abaa3c479cdc259545e1b11e56248812'/>
<id>c249c718abaa3c479cdc259545e1b11e56248812</id>
<content type='text'>
Added synopsis to the following modules under cc package:
    * cc_binary
    * cc_binary_host
    * cc_defaults
    * cc_genrule
    * cc_test
    * cc_test_host

Bug: b/128337482
Test: Generated the documentation and verified that the
synopsis was added to each of the module.

Change-Id: I23b7eda449c340783d7cc592df5d2bd399255bf9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added synopsis to the following modules under cc package:
    * cc_binary
    * cc_binary_host
    * cc_defaults
    * cc_genrule
    * cc_test
    * cc_test_host

Bug: b/128337482
Test: Generated the documentation and verified that the
synopsis was added to each of the module.

Change-Id: I23b7eda449c340783d7cc592df5d2bd399255bf9
</pre>
</div>
</content>
</entry>
<entry>
<title>Enable lld for windows</title>
<updated>2019-03-20T21:07:47+00:00</updated>
<author>
<name>Pirama Arumuga Nainar</name>
<email>pirama@google.com</email>
</author>
<published>2019-02-28T23:52:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=3c21c0b1d9bab0d51100ca03aa157a1d8545c2ea'/>
<id>3c21c0b1d9bab0d51100ca03aa157a1d8545c2ea</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>Install symlink to the runtime APEX only for device</title>
<updated>2019-03-15T17:13:46+00:00</updated>
<author>
<name>Jiyong Park</name>
<email>jiyong@google.com</email>
</author>
<published>2019-03-15T16:10:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=c3e2c86caf8cc3702bf65ce9f138c1e56480aea5'/>
<id>c3e2c86caf8cc3702bf65ce9f138c1e56480aea5</id>
<content type='text'>
Host does not need the symlink. It also broke master-art-host targets.

Test: ALLOW_MISSING_DEPENDENCIES=true
DIST_DIR=~/temp
./art/tools/dist_linux_bionic.sh -j50 showcommands
com.android.runtime.host

Change-Id: Ie8e02553c5a1b6cd5afebd73a64268d2950fc18e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Host does not need the symlink. It also broke master-art-host targets.

Test: ALLOW_MISSING_DEPENDENCIES=true
DIST_DIR=~/temp
./art/tools/dist_linux_bionic.sh -j50 showcommands
com.android.runtime.host

Change-Id: Ie8e02553c5a1b6cd5afebd73a64268d2950fc18e
</pre>
</div>
</content>
</entry>
<entry>
<title>Create symlink for bionic files</title>
<updated>2019-03-14T18:04:52+00:00</updated>
<author>
<name>Jiyong Park</name>
<email>jiyong@google.com</email>
</author>
<published>2019-02-25T02:05:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=f11943527d5fee8c253a23c959ebb70267721652'/>
<id>f11943527d5fee8c253a23c959ebb70267721652</id>
<content type='text'>
This change creates following symlinks for bionic files.

/system/lib/libc.so -&gt; /apex/com.android.runtime/lib/bionic/libc.so
/system/lib/libm.so -&gt; /apex/com.android.runtime/lib/bionic/libm.so
/system/lib/libdl.so -&gt; /apex/com.android.runtime/lib/bionic/libdl.so
/system/bin/linker -&gt; /apex/com.android.runtime/bin/linker
...

This allows us to not have mountpoints under /bionic.

Bug: 125549215
Test: m and inspect the symlinks in the system partition.
Change-Id: I3a58bf4f88c967862dbf06065a1af8fc4700dda3
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change creates following symlinks for bionic files.

/system/lib/libc.so -&gt; /apex/com.android.runtime/lib/bionic/libc.so
/system/lib/libm.so -&gt; /apex/com.android.runtime/lib/bionic/libm.so
/system/lib/libdl.so -&gt; /apex/com.android.runtime/lib/bionic/libdl.so
/system/bin/linker -&gt; /apex/com.android.runtime/bin/linker
...

This allows us to not have mountpoints under /bionic.

Bug: 125549215
Test: m and inspect the symlinks in the system partition.
Change-Id: I3a58bf4f88c967862dbf06065a1af8fc4700dda3
</pre>
</div>
</content>
</entry>
<entry>
<title>Use llvm-{strip,objcopy} by default</title>
<updated>2019-02-04T10:20:28+00:00</updated>
<author>
<name>Yi Kong</name>
<email>yikong@google.com</email>
</author>
<published>2018-11-08T00:28:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=b5c34d7f4076187195399f6e490ed9845b56aa51'/>
<id>b5c34d7f4076187195399f6e490ed9845b56aa51</id>
<content type='text'>
... except for Darwin Mach-O, as it is not supported by llvm-strip.

Test: m checkbuild
Bug: 119221035
Change-Id: I021637b6dd3530bff1f563f2ec7c2168e1083b7e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... except for Darwin Mach-O, as it is not supported by llvm-strip.

Test: m checkbuild
Bug: 119221035
Change-Id: I021637b6dd3530bff1f563f2ec7c2168e1083b7e
</pre>
</div>
</content>
</entry>
<entry>
<title>Add unstrippedOutputFilePath to the linker interface</title>
<updated>2019-02-01T02:04:58+00:00</updated>
<author>
<name>Jiyong Park</name>
<email>jiyong@google.com</email>
</author>
<published>2019-01-31T03:21:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=af6d8959411c0381a6cdf49ade70d1b65a08a2d1'/>
<id>af6d8959411c0381a6cdf49ade70d1b65a08a2d1</id>
<content type='text'>
Test: m
Change-Id: I85a0cbda6ebb9838451ed8c607c2087460b7b742
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test: m
Change-Id: I85a0cbda6ebb9838451ed8c607c2087460b7b742
</pre>
</div>
</content>
</entry>
<entry>
<title>"bootstrap: true" modules are using bootstrap Bionic</title>
<updated>2019-01-31T04:44:20+00:00</updated>
<author>
<name>Jiyong Park</name>
<email>jiyong@google.com</email>
</author>
<published>2019-01-16T13:53:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=a4b9dd08c02fddb1487f21f526bc8ccc598f237a'/>
<id>a4b9dd08c02fddb1487f21f526bc8ccc598f237a</id>
<content type='text'>
If the bootstrap property is set to true, a binary configured to refer
to the bootstrap linker at /system/bin/bootstrap/linker[64]. This is for
very early processes that are executed before the init makes the linker
by bind-mounting it.

Bug: 120266448
Test: m init_second_stage and use readelf on the built file
DT_INTERP is set to /system/bin/bootstrap/linker64 and

Change-Id: I67487701192f127679cc8127ddc9f53e102ba9c4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the bootstrap property is set to true, a binary configured to refer
to the bootstrap linker at /system/bin/bootstrap/linker[64]. This is for
very early processes that are executed before the init makes the linker
by bind-mounting it.

Bug: 120266448
Test: m init_second_stage and use readelf on the built file
DT_INTERP is set to /system/bin/bootstrap/linker64 and

Change-Id: I67487701192f127679cc8127ddc9f53e102ba9c4
</pre>
</div>
</content>
</entry>
</feed>
