Commit graph

6796 commits

Author SHA1 Message Date
Colin Cross
dcb4d160e8 Disable duplicates warnings when merging jars am: f91a08caca am: c40d9b1e7f
am: bd828daf68

Change-Id: Ib5d03905b5b64757c16d0e45d868bb68a23fc544
2018-02-08 09:37:35 +00:00
Colin Cross
bd828daf68 Disable duplicates warnings when merging jars am: f91a08caca
am: c40d9b1e7f

Change-Id: I0bee8459b737a48941109d50e81c83d6048628a6
2018-02-08 08:56:29 +00:00
Colin Cross
c40d9b1e7f Disable duplicates warnings when merging jars
am: f91a08caca

Change-Id: I722984453c53cedf77cea8493c7185b8c8c6756d
2018-02-08 08:51:58 +00:00
Dan Albert
f2ceea7f1f Disable a warning that libc++'s headers trip.
Test: make checkbuild
Bug: None
Change-Id: I117bd9ef3f4f3c8792f4b6692d7b70ad69b6922d
2018-02-07 17:24:42 -08:00
Colin Cross
f91a08caca Disable duplicates warnings when merging jars
There are too many duplicates warnings, disable them until someone
is actually looking at them.

Bug: 69316739
Test: m checkbuild
Change-Id: I7b3315f999dff1c01b6df37ab5ca83f7b8a60bd9
2018-02-08 01:15:39 +00:00
Dan Willemsen
c72573dcd1 Add performance and best practices documentation am: bc203622e6 am: 5f45e9b1a6
am: 5fcb0c5420

Change-Id: Id4f3bb108d8fcaae4aed804bd824d5fc8b0781f3
2018-02-07 21:16:37 +00:00
Dan Willemsen
5fcb0c5420 Add performance and best practices documentation am: bc203622e6
am: 5f45e9b1a6

Change-Id: I0419e47873a97a13236439ae0ab52c34f7420160
2018-02-07 21:12:36 +00:00
Dan Willemsen
5f45e9b1a6 Add performance and best practices documentation
am: bc203622e6

Change-Id: I2901750a907cfb141cfea33419ae7b6928c22663
2018-02-07 21:08:03 +00:00
Nan Zhang
f36a3d9b6d Support filegroup in exclude_srcs
Test: add unit-test, m -j32
Bug: b/70351683
Change-Id: Iff83c56d45dd668d9df6131c7df2e23e5c73a21b
2018-02-07 10:18:41 -08:00
Dan Willemsen
bc203622e6 Add performance and best practices documentation
Test: check gitiles view
Change-Id: I2fa4fa5f7ee91ba586e1900542c8c334eb727a6b
2018-02-07 10:13:36 -08:00
Sundong Ahn
7c62ddc381 Merge "Change the naming policy of system_$(VER)" am: 7a26b708a5 am: 8b6f140b5c
am: 38a6797919

Change-Id: I02ce1e4938a87709ed6970f85749c1552282236b
2018-02-07 09:02:00 +00:00
Ryan Prichard
5486f555a1 Merge "Enable emutls with -flto for Android sanitize=cfi" am: 966bdded1f am: 9787126b17
am: 0beba440a3

Change-Id: Iee5a209b3fdfe3aea204eb873c94c9bf74cfbf89
2018-02-07 08:42:45 +00:00
Sundong Ahn
38a6797919 Merge "Change the naming policy of system_$(VER)" am: 7a26b708a5
am: 8b6f140b5c

Change-Id: I5a9a58201f09b98410f0ec94fb5164bc67c891c2
2018-02-07 06:36:35 +00:00
Sundong Ahn
8b6f140b5c Merge "Change the naming policy of system_$(VER)"
am: 7a26b708a5

Change-Id: I5af4e7b2e20a18fa2e397bd91d17eb82d0231894
2018-02-07 06:32:58 +00:00
Treehugger Robot
7a26b708a5 Merge "Change the naming policy of system_$(VER)" 2018-02-07 06:26:05 +00:00
Ryan Prichard
0beba440a3 Merge "Enable emutls with -flto for Android sanitize=cfi" am: 966bdded1f
am: 9787126b17

Change-Id: Ie664bbdd74cc299680b17a8436711be1ce3ddbf0
2018-02-07 04:19:47 +00:00
Ryan Prichard
9787126b17 Merge "Enable emutls with -flto for Android sanitize=cfi"
am: 966bdded1f

Change-Id: Ibc7b2b84d931f1ced0806a38bc719e91017e0ba0
2018-02-07 04:06:53 +00:00
Treehugger Robot
966bdded1f Merge "Enable emutls with -flto for Android sanitize=cfi" 2018-02-07 03:14:20 +00:00
Colin Cross
64ab8062ec Merge "Support filegroups for version_script and related properties" am: ca59511e21 am: 4009b12ead
am: bfbda64f6a

Change-Id: Iace6d60c3d05af33825a5066caacf169bf7b541c
2018-02-07 02:27:08 +00:00
Stephen Hines
6ba52d4d56 Merge "Silence warnings rather than keeping them in the logs." am: 8646e2ea55 am: 2180672eaf
am: b5f52fbecf

Change-Id: Idcf4c18f283d98fe91dc58c944a2af999754b657
2018-02-07 01:52:35 +00:00
Colin Cross
bfbda64f6a Merge "Support filegroups for version_script and related properties" am: ca59511e21
am: 4009b12ead

Change-Id: Ieb9334bd32df600ee1f6c1ecbc12963d38e2260f
2018-02-07 01:43:35 +00:00
Stephen Hines
b5f52fbecf Merge "Silence warnings rather than keeping them in the logs." am: 8646e2ea55
am: 2180672eaf

Change-Id: I112ae9cae50834b2efb7b711e7b000bbd0cc06c5
2018-02-07 01:43:21 +00:00
Colin Cross
4009b12ead Merge "Support filegroups for version_script and related properties"
am: ca59511e21

Change-Id: I77fcf173438cab8fe8348dfab016575e0391292f
2018-02-07 01:33:45 +00:00
Colin Cross
655f1c7c2f Merge "Add a tool to inject data into an elf, macho, or PE symbol" am: deda6efac4 am: cb884b207f
am: f8449157f5

Change-Id: I79b6dd8c09360680b07f63ccd0e46790031d7200
2018-02-07 01:33:40 +00:00
Stephen Hines
2180672eaf Merge "Silence warnings rather than keeping them in the logs."
am: 8646e2ea55

Change-Id: Ie6d29ab47b07711b934cc1cf19f014c5a1ee081d
2018-02-07 01:33:23 +00:00
Jiyong Park
47fecf2b51 Support sdk_version: "core_current" am: 750e557011 am: 313c1cde06
am: 904f53799d

Change-Id: I125f49678bc6979456e3d646c057ef0b4a4cc44a
2018-02-07 01:30:15 +00:00
Treehugger Robot
ca59511e21 Merge "Support filegroups for version_script and related properties" 2018-02-07 00:58:43 +00:00
Treehugger Robot
8646e2ea55 Merge "Silence warnings rather than keeping them in the logs." 2018-02-07 00:53:40 +00:00
Sundong Ahn
8222d3b31e Change the naming policy of system_$(VER)
The module name of system_$(VER) prebuilt file is system_sdk_v$(VER).
But this is inconsistent with sdk_v$(LOCAL_SDK_VERSION) in
prebuilts/sdk.
So, system_sdk_v$(VER) is changed to sdk_vsystem_$(VER) to use the same
naming policy.

Bug: 72031391
Test: build
Change-Id: I3f18b7969dda208beeefdcaefadcc42db5c1577e
2018-02-06 23:51:14 +00:00
Colin Cross
f8449157f5 Merge "Add a tool to inject data into an elf, macho, or PE symbol" am: deda6efac4
am: cb884b207f

Change-Id: If76d6c749f61cf74324a33c5b9995c33bc59657c
2018-02-06 23:48:20 +00:00
Jiyong Park
904f53799d Support sdk_version: "core_current" am: 750e557011
am: 313c1cde06

Change-Id: I0fcd39aac347aff88c043e8a1bcac5825636567a
2018-02-06 23:45:31 +00:00
Colin Cross
cb884b207f Merge "Add a tool to inject data into an elf, macho, or PE symbol"
am: deda6efac4

Change-Id: I69c2bb0c477cb72d78c965edecc9d8b4aefc38c6
2018-02-06 23:15:17 +00:00
Ryan Prichard
3ed1f70414 Enable emutls with -flto for Android sanitize=cfi
-fsanitize=cfi requires LTO. Normally, the Clang driver automatically
enables emutls, but it's broken with -flto, so work around it by passing
-Wl,-plugin-opt=-emulated-tls.

See https://buganizer.corp.google.com/issues/72706604#comment15

Enable the workaround with ctx.Device(), which is the same condition used
in the existing I18acac41aac885fc6635fbd55f96ba7c845eb5e7 workaround.

Bug: b/72706604
Bug: https://github.com/android-ndk/ndk/issues/498
Test: m libaudioflinger (on internal master); \
  readelf -sW symbols/system/lib64/libaudioflinger.so | grep tlNBLogWriter
  check that __emutls_t.tlNBLogWriter exists
  check that no symbols of type TLS exist

Change-Id: I2cf65574c52476843cc017ee176a7d6777e2ce0b
2018-02-06 15:11:38 -08:00
Jiyong Park
313c1cde06 Support sdk_version: "core_current"
am: 750e557011

Change-Id: Ia08877be036ad874dd01fe4a35e5d2e28322a764
2018-02-06 23:10:49 +00:00
Nan Zhang
69b86ee6df Merge "Add property to enable adding tools.jar to bootclasspath." am: 97754359cc am: 0965552a5b
am: 18ce234234

Change-Id: Ibb10696e7aa17b789987eb1d05d5ecd99f226f0a
2018-02-06 23:00:15 +00:00
Nan Zhang
18ce234234 Merge "Add property to enable adding tools.jar to bootclasspath." am: 97754359cc
am: 0965552a5b

Change-Id: I8a93193a79bd4f099621cfd875020f9119d9738f
2018-02-06 22:52:13 +00:00
Stephen Hines
a42e0a0eca Silence warnings rather than keeping them in the logs.
We can simply revert this patch to work on these warnings independently.

Bug: http://b/72331526
Bug: http://b/72331524
Bug: http://b/72330874
Test: Build

Change-Id: I9cec51578a1c6de33fb6f832c758b9916c61b735
2018-02-06 14:51:08 -08:00
Treehugger Robot
deda6efac4 Merge "Add a tool to inject data into an elf, macho, or PE symbol" 2018-02-06 22:51:05 +00:00
Colin Cross
2383f3b693 Support filegroups for version_script and related properties
Bug: 71715793
Test: m checkbuild
Change-Id: Ibf78a5ec88e743f29504c91057d2cfced667c8b4
2018-02-06 14:42:06 -08:00
Nan Zhang
0965552a5b Merge "Add property to enable adding tools.jar to bootclasspath."
am: 97754359cc

Change-Id: I0ed9c3390531504d8cc091ebe3e151250eea4802
2018-02-06 22:40:25 +00:00
Jiyong Park
750e557011 Support sdk_version: "core_current"
core_current is a pseudo SDK version which is a core Java API subset of
the Android API. It is expected to be mainly used for external Java
projects which are agnostic to Android; such as junit, guava, etc.

A module built with this SDK version can only link to java modules of
the same kind. It can't depend on modules built with other sdk  (e.g.
current) or without sdk.

Bug: 72206056
Test: m -j
Change-Id: I778e7b4fcb9456a12b418ffd633ea78e29951e84
2018-02-07 07:35:36 +09:00
Treehugger Robot
97754359cc Merge "Add property to enable adding tools.jar to bootclasspath." 2018-02-06 21:12:16 +00:00
Colin Cross
5498f8548b Add a tool to inject data into an elf, macho, or PE symbol
Test: symbol_inject -i a.out -o a.out2 -s symbol -v value
Change-Id: I16cd8facbae754f679bef07ab0ba23638286e1d7
2018-02-06 19:12:21 +00:00
Stephen Hines
ecdf4a5996 Merge "Switch to clang-4579689." am: fa54e751d9 am: 3bcedd91cf
am: b6b386bf91

Change-Id: Ide6a047fae76ba61b5a755ca74a927c1128a1c91
2018-02-06 19:10:36 +00:00
Stephen Hines
b6b386bf91 Merge "Switch to clang-4579689." am: fa54e751d9
am: 3bcedd91cf

Change-Id: I957e4f11b965a97702d54ab3cdf71a11d1f3c25b
2018-02-06 19:03:51 +00:00
Nan Zhang
5f8cb424aa Add property to enable adding tools.jar to bootclasspath.
Converting Doclava to Soong need tools.jar as one of its bootclasspaths.

Test:  m doclava
Bug: b/70351683
Change-Id: I0ac65fcbe1eadfc57239cde2e83b80cf441a9b69
2018-02-06 11:01:51 -08:00
Stephen Hines
3bcedd91cf Merge "Switch to clang-4579689."
am: fa54e751d9

Change-Id: I2c230f9200514c6dbc82feeca91ee77e08cebe16
2018-02-06 18:53:34 +00:00
Stephen Hines
fa54e751d9 Merge "Switch to clang-4579689." 2018-02-06 18:35:41 +00:00
Stephen Hines
438a714559 Merge "Add srhines to the OWNERS for clang.go and global.go." am: 035f779fbe am: b1bbaebac8
am: a6c2361373

Change-Id: Ie48c88bbe80b1bb9a0c50caadc79c0a235c7d35a
2018-02-06 03:00:42 +00:00
Stephen Hines
a6c2361373 Merge "Add srhines to the OWNERS for clang.go and global.go." am: 035f779fbe
am: b1bbaebac8

Change-Id: Id3e3532b4feb5fa58d29c28b12ccaf0f255e548c
2018-02-06 02:49:52 +00:00