Commit graph

6131 commits

Author SHA1 Message Date
Jayant Chowdhary
fd6e769413 Merge "Start using clang-tools prebuilts for abi diffing tools." am: b49ff309a1
am: 6bbac8082f

Change-Id: I3e4961b722b1de7e457a9ea27bce31d0ef5ea1e6
2018-02-21 18:35:11 +00:00
Jayant Chowdhary
6bbac8082f Merge "Start using clang-tools prebuilts for abi diffing tools."
am: b49ff309a1

Change-Id: Idf7ae900c76a26eb9068c99b61c11e3de65297bf
2018-02-21 18:28:05 +00:00
Jayant Chowdhary
b49ff309a1 Merge "Start using clang-tools prebuilts for abi diffing tools." 2018-02-21 18:16:02 +00:00
Jiyong Park
9e611039c5 Merge "Only emit enabled VNDK libraries" am: d240e3d4e2
am: d5f4f45505

Change-Id: I144dffdf5a750f9ef3b4be79616dd8413a1a2eff
2018-02-21 02:58:57 +00:00
Jiyong Park
d5f4f45505 Merge "Only emit enabled VNDK libraries"
am: d240e3d4e2

Change-Id: Icdaf1d506a1e8a52972c07f7e953878c664c58c8
2018-02-21 02:51:26 +00:00
Treehugger Robot
d240e3d4e2 Merge "Only emit enabled VNDK libraries" 2018-02-21 02:35:31 +00:00
Jayant Chowdhary
a4c6df5d69 Start using clang-tools prebuilts for abi diffing tools.
Bug: 72504455

Test: make -j64

Change-Id: Idbe1142e11147163d0c032fb351e9f3d5614dfb1
2018-02-20 12:44:50 -08:00
Colin Cross
a205f6274e Fix injecting data into a .o file am: 52226ad920
am: e5f32c8091

Change-Id: I4cc5e7aba362185c2a9191964c06266110ddd33c
2018-02-20 18:14:16 +00:00
Colin Cross
4bc286eca9 Fix comment on how java rules handle unknown output files am: f7eac7a2ac
am: a14eee8e4a

Change-Id: Id664781384aaad7bdaf0855addb88025bdd60c4a
2018-02-20 18:13:47 +00:00
Colin Cross
e5f32c8091 Fix injecting data into a .o file
am: 52226ad920

Change-Id: I742e9ffe508d06d1d9f5763f8bdbff2fc844e759
2018-02-20 18:07:10 +00:00
Colin Cross
a14eee8e4a Fix comment on how java rules handle unknown output files
am: f7eac7a2ac

Change-Id: I6fb9e3404055fca835834b6e4b1e52d3a6e3c4fd
2018-02-20 18:06:44 +00:00
Colin Cross
52226ad920 Fix injecting data into a .o file
Use section.Offset instead of Addr.

Test: symbol_inject -i test.o -o test2.o -s symbol -v value
Change-Id: I9c54a5a245e7674b8370fc27ba7d0b9995f2ed08
2018-02-20 17:54:20 +00:00
Colin Cross
f7eac7a2ac Fix comment on how java rules handle unknown output files
Test: none
Change-Id: I985e7961c87dd145d6eb2bd94cb8bdc43becc360
2018-02-20 17:54:00 +00:00
Elliott Hughes
2db440f99b Use the platform -std= for sdk_version. am: 5789ca9f28
am: 6dc655202b

Change-Id: I216faefd4461eea99153c64691f6b5dff660fdcf
2018-02-20 15:44:20 +00:00
Elliott Hughes
6dc655202b Use the platform -std= for sdk_version.
am: 5789ca9f28

Change-Id: I0b7130226d62f7d1d9c2c5eb6bddecf546323094
2018-02-20 15:37:13 +00:00
Elliott Hughes
5789ca9f28 Use the platform -std= for sdk_version.
Bug: http://b/72571399
Test: builds
Change-Id: I294cfadb7de54b1ae648e02ac9af34ed7a7405d8
2018-02-20 15:27:45 +00:00
Nan Zhang
6df794ebb4 Merge "Revert "Revert "Support filegroup in exclude_srcs""" am: f28e32a2a5
am: 3aa79ee5f5

Change-Id: I49065eb23b4630d8a4fdaeb904825d5dccbe3fe7
2018-02-19 18:29:04 +00:00
Nan Zhang
3aa79ee5f5 Merge "Revert "Revert "Support filegroup in exclude_srcs"""
am: f28e32a2a5

Change-Id: I0d2e026e1ee01ecac5bf06c379b325e431b0ac2e
2018-02-19 18:23:03 +00:00
Treehugger Robot
f28e32a2a5 Merge "Revert "Revert "Support filegroup in exclude_srcs""" 2018-02-19 18:14:37 +00:00
Jiyong Park
4b0322265f Only emit enabled VNDK libraries
Disabled VNDK libraries (due to arch mismatch) are no longer emitted to
make variables VNDK_CORE_LIBRARIES and LLNDK_LIBRARIES

Bug: 7456955
Test: choosecombo to aosp_walleye and m -j
Find libclang_rt.ubsan_standalone-<arch>-android in VNDK_CORE_LIBRARIES.
Only aarch64 and arm are found.

Change-Id: Iaa134d07513e39390fe34a31fdfe2e327b190996
2018-02-16 22:16:29 +09:00
Yi Kong
3dca508089 Merge "Disable inlining and loop unrolling in LTO without PGO profile" am: 06d1060041
am: db764c0315

Change-Id: Iab7ec6e91e5dd975b4312a162bc3c84810b38438
2018-02-16 03:27:28 +00:00
Yi Kong
db764c0315 Merge "Disable inlining and loop unrolling in LTO without PGO profile"
am: 06d1060041

Change-Id: Ie5aa4f6fa3abb10453e900a7be298d418688ab60
2018-02-16 03:13:07 +00:00
Yi Kong
06d1060041 Merge "Disable inlining and loop unrolling in LTO without PGO profile" 2018-02-16 02:46:36 +00:00
Nan Zhang
eaf13c4c36 Let Soong_UI to handle build_date.txt file am: 2e6a4ff3be
am: cb33597d5a

Change-Id: Ieaacc296ec376c5cce9e01d30ee284e4174f5e5b
2018-02-15 22:53:07 +00:00
Nan Zhang
cb33597d5a Let Soong_UI to handle build_date.txt file
am: 2e6a4ff3be

Change-Id: Ib19d02398a54e7eee5424ae04f9eb1bede132001
2018-02-15 22:46:36 +00:00
Nan Zhang
27e284d2b0 Revert "Revert "Support filegroup in exclude_srcs""
This reverts commit 606e9de344.

Reason for revert: <try to fix the broken build yesterday>

Change-Id: I2963b9af63c7c7398159e5e9a1e448266e1c81d5
Test: unittest
2018-02-15 14:38:40 -08:00
Nan Zhang
2e6a4ff3be Let Soong_UI to handle build_date.txt file
Soong_UI will update timestamp to build_date.txt, and export variables
to kati/ninja.

Test: m -j32
Bug: b/70351683
Change-Id: I153897afdf2d3f39a32d757d4c3ae7515caea52d
2018-02-15 11:45:53 -08:00
Przemyslaw Szczepaniak
73d1deeea4 Add rsp and srcjar support to kotlinc build rule am: 4b5fe9d1b4
am: dae5bb8f25

Change-Id: I2cdbe56c4dfdad0f8ed58e443c807dae6a5c647c
2018-02-15 11:57:11 +00:00
Przemyslaw Szczepaniak
dae5bb8f25 Add rsp and srcjar support to kotlinc build rule
am: 4b5fe9d1b4

Change-Id: Id28939fd29103701af2d24f5e56fad27b66582d3
2018-02-15 11:49:39 +00:00
Przemyslaw Szczepaniak
4b5fe9d1b4 Add rsp and srcjar support to kotlinc build rule
Rsp files are supported through helper script (gen-kotlin-build-file.sh)
that generates the kotlinc module/build xml file.

Since rsp files are supported, I've added ExtractSrcJarsCmd step
to handle srcjars extraction.

Minor reorderings to make sure that TransformKotlinToClasses
recives only .java and .kt files when called from Module.compile.

Bug: 73281388
Test: make -j hidl-doc
Change-Id: I5a40b914569018dc529903a7f2864a5aeae838e5
2018-02-14 20:47:17 +00:00
Zhizhou Yang
680d9793bd Fix llvm-ar error caused by using lto and sanitizer together am: 51be632b95
am: 5f4c0d6cb3

Change-Id: Ie257e551f034ad95d8a7082116869128a407e27b
2018-02-14 18:44:20 +00:00
Zhizhou Yang
5f4c0d6cb3 Fix llvm-ar error caused by using lto and sanitizer together
am: 51be632b95

Change-Id: I3f66259e36671facce563b1a50814e7306513414
2018-02-14 18:38:54 +00:00
Yi Kong
7e53c57ed6 Disable inlining and loop unrolling in LTO without PGO profile
Such optimisations may significantly increase the binary size when
compiler heuristics are off. Disabling these helps cut down the
binary sizes with negligible decrease in performance, but allows us to
be more comfortable enabling LTO across various projects.

Test: m
Test: dex2oat, hwui, skia benchmark
Bug: 62839002
Change-Id: Id63e8dd295df2972f76ae4e29ee367080fff8429
2018-02-14 21:21:23 +08:00
Zhizhou Yang
51be632b95 Fix llvm-ar error caused by using lto and sanitizer together
LLVM-AR does not allow passing --plugin options more than once. The
--plugin ARFLAGS that lto want to add, may already exist if sanitizer is
also turned on.

Fixed this by adding a new bool Flags.ArGoldPlugin. Set this variable to
true whenever LLVM gold plugin is needed for ArFlags. In function
TransformObjToStaticLib(), add this option to arFlags using global value
${config.LLVMGoldPlugin} if the bool value is true.

Bug: http://b/73160350
Test: build the image with make and succeeded.

Change-Id: I62785829b0a4b663225926e4aed98defc1b6da2c
(cherry picked from commit 4917049f6e)
2018-02-14 21:21:14 +08:00
Nan Zhang
ba85cb38f3 Merge "Add Respfile support for soong_zip." am: 3bb5f2f2fa
am: afe289114a

Change-Id: I38229a6aaaad1b8394927e6da31741f4e2f95476
2018-02-14 01:21:38 +00:00
Nan Zhang
afe289114a Merge "Add Respfile support for soong_zip."
am: 3bb5f2f2fa

Change-Id: Ifc59ddbd16a5cf82f7750f9927c2d0f24627fc81
2018-02-14 01:14:08 +00:00
Treehugger Robot
3bb5f2f2fa Merge "Add Respfile support for soong_zip." 2018-02-14 01:04:22 +00:00
Alan Viverette
7b9bbf95cc Merge "Use "jar" as default type, "compile" as default scope" am: 1fd468782a
am: 3420beb522

Change-Id: Ibd635931bcf644517241186c5a64e08cb3ba6b57
2018-02-13 23:28:09 +00:00
Alan Viverette
3420beb522 Merge "Use "jar" as default type, "compile" as default scope"
am: 1fd468782a

Change-Id: Ic9060c251e4927c336fc9f176518ceff3fbe85d6
2018-02-13 23:24:09 +00:00
Treehugger Robot
1fd468782a Merge "Use "jar" as default type, "compile" as default scope" 2018-02-13 23:17:02 +00:00
Nan Zhang
674dd932d8 Add Respfile support for soong_zip.
Sometime the size of our command line passed to soong_zip go program
exceeds the cmdline size limit. So add an RespFile support with "@" special
character prefix.

The args in the cmdline will be considered together with the
args in RespFile during soong_zip running.

Test: real tests in my local machine, and compare the
res/libphonenumber.jar before and after changes.

./cmd -o test.zip '""'-C -> [./cmd,-o,test.zip,""-C]
./cmd -o test.zip '-C -f -> [./cmd,-o,test.zip,-C -f]
./cmd -o test.zip '\"'-C -f -> [./cmd,-o,test.zip,\"-C -f]
./cmd -o test.zip '\\'-C -f -> [./cmd,-o,test.zip,\\-C -f]
./cmd -o test.zip '\a'-C -f -> [./cmd,-o,test.zip,\a-C -f]

./cmd -o test.zip \'-C -> [./cmd,-o,test.zip,'-C]
./cmd -o test.zip \\-C -> [./cmd,-o,test.zip,\-C]
./cmd -o test.zip \"-C -> [./cmd,-o,test.zip,"-C]

./cmd -o test.zip "'"-C -> [./cmd,-o,test.zip,'-C]
./cmd -o test.zip "\\"-C -f -> [./cmd,-o,test.zip,\a-C -f]
./cmd -o test.zip "\""-C -f -> [./cmd,-o,test.zip,"a-C -f]

Bug: b/72484223

Change-Id: I83c3630b70c8396c8e8a3f266244d868d754c4e8
2018-02-13 15:13:01 -08:00
Pirama Arumuga Nainar
0ee536259f Search for PGO profiles in PGO_ADDITIONAL_PROFILE_DIRS am: 49540800f0
am: 8f7ea0ebdd

Change-Id: If92b86aafbaac8fa329b6aa6c43c9d75bd723bbc
2018-02-13 21:09:48 +00:00
Pirama Arumuga Nainar
8f7ea0ebdd Search for PGO profiles in PGO_ADDITIONAL_PROFILE_DIRS
am: 49540800f0

Change-Id: Ia182ff5272cf4f42fde7a6d96a48076c1998a98e
2018-02-13 21:03:44 +00:00
Alan Viverette
6bd35eb6f5 Use "jar" as default type, "compile" as default scope
Only include dependencies for scope "compile."

Bug: 73263586
Test: ./update_current.py -s -t <build-id>
Change-Id: I2ac6055cb4c1ad1f8d7924869f54f50e5e662742
2018-02-13 15:21:18 -05:00
Pirama Arumuga Nainar
49540800f0 Search for PGO profiles in PGO_ADDITIONAL_PROFILE_DIRS
This variable can be set in BoardConfig.mk to specify a list of
additional paths that contain PGO profiles.  These directories are
searched after the predefined paths in soong/cc/pgo.go while finding
PGO profiles.

Test: Set this variable in a BoardConfig and verify that such profiles
are found and that these paths are searched after the predefined paths
in soong/cc/pgo.go.

Change-Id: I0bb9523de614d0f23aba8d51c887d8fc8f41c993
2018-02-13 09:41:13 -08:00
Dan Albert
b0edf20ac0 Merge "Disable a warning that libc++'s headers trip." am: 1d29875829
am: b4e2a566f9

Change-Id: Iabee435286e7cd16d53899941f7c9832815e5dee
2018-02-09 18:44:54 +00:00
Dan Albert
b4e2a566f9 Merge "Disable a warning that libc++'s headers trip."
am: 1d29875829

Change-Id: I4c7c14f2634dcda7edf6f5348654fd3094f71881
2018-02-09 18:38:01 +00:00
Treehugger Robot
1d29875829 Merge "Disable a warning that libc++'s headers trip." 2018-02-09 18:23:11 +00:00
Tobias Thierer
019405de4a Merge "Revert "Support filegroup in exclude_srcs"" am: f5801db4cc
am: 62c06ce8ed

Change-Id: I0195db7a8c8f02d0920eae8759b47f841a3e7e70
2018-02-09 10:13:45 +00:00
Tobias Thierer
62c06ce8ed Merge "Revert "Support filegroup in exclude_srcs""
am: f5801db4cc

Change-Id: I180101b7d1a0eeef10a1ca4bfc4198262b80c001
2018-02-09 10:07:15 +00:00