Commit Graph

6045 Commits

Author SHA1 Message Date
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
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
Treehugger Robot
97754359cc Merge "Add property to enable adding tools.jar to bootclasspath." 2018-02-06 21:12:16 +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
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
Stephen Hines
b1bbaebac8 Merge "Add srhines to the OWNERS for clang.go and global.go."
am: 035f779fbe

Change-Id: I1f97fdc17c409162cccd8160c25879c9c66a73a8
2018-02-06 02:21:57 +00:00
Stephen Hines
035f779fbe Merge "Add srhines to the OWNERS for clang.go and global.go." 2018-02-05 23:57:46 +00:00
Stephen Hines
f5b969cd2b Add srhines to the OWNERS for clang.go and global.go.
These files contain the flags and selection logic for our C/C++
toolchain.

Test: N/A
Change-Id: I860ea34c226ec01ae4127a18d80e1c8be6393a83
2018-02-02 19:06:34 -08:00
Yi Kong
599a6032fc Switch to clang-4579689.
Bug: 68397894
Test: http://go/clang-4523590-testing
Change-Id: Ief806250572fe2cc5f39b4c47ff74863acbbb26d
2018-02-01 10:23:32 -08:00
Yi Kong
5bb2933ded Add environment variable to globally disable LTO am: 03d383d038
am: 96548ad441

Change-Id: I9876e420de160d34df9b920470a3bb894ff0bde8
2018-02-01 11:35:20 +00:00
Yi Kong
96548ad441 Add environment variable to globally disable LTO
am: 03d383d038

Change-Id: I4b14aaf2380ca7f768e84574778f769ce3b54d98
2018-02-01 08:45:03 +00:00
Yi Kong
03d383d038 Add environment variable to globally disable LTO
Allow developers to disable LTO to reduce build time.

Test: m checkbuild
Test: DISABLE_LTO=true m checkbuild
Bug: 62839002
Change-Id: I30642e3cfff60c4874a2f8797d08105b4e07cc6d
2018-01-31 16:26:12 -08:00
Pirama Arumuga Nainar
4bc833f362 Merge "Store missing profile files into a Make variable" am: 407c2434c8
am: db22f2a700

Change-Id: Ie1ea7f6958e2c642f2ed1f0ad7cc612b0e9d857a
2018-01-30 06:46:09 +00:00
Pirama Arumuga Nainar
db22f2a700 Merge "Store missing profile files into a Make variable"
am: 407c2434c8

Change-Id: Iacb15d1bdb64e3a10d97fbeace8572308488ed5a
2018-01-30 06:41:09 +00:00
Treehugger Robot
407c2434c8 Merge "Store missing profile files into a Make variable" 2018-01-30 06:34:15 +00:00
Dan Willemsen
73b2c92b82 Merge "Move namespace mutator earlier to support defaults" am: 750024367e
am: 4a93b0ea47

Change-Id: I71cf27b087ca16bcb4b24694150630b57c3c359f
2018-01-30 00:34:00 +00:00
Dan Willemsen
4a93b0ea47 Merge "Move namespace mutator earlier to support defaults"
am: 750024367e

Change-Id: I847c756fa7be5d75d09b9b2e70577b09b4ecec42
2018-01-30 00:28:34 +00:00
Dan Willemsen
750024367e Merge "Move namespace mutator earlier to support defaults" 2018-01-30 00:16:13 +00:00
Nan Zhang
6f98d5a1d2 Change syntax for jacoco filter wildcard params. am: ffe2c1c369
am: f522b991a7

Change-Id: I5d5d8ff33b05dd36b8d1b07b2eec965b943a1e9b
2018-01-29 22:19:44 +00:00
Nan Zhang
f522b991a7 Change syntax for jacoco filter wildcard params.
am: ffe2c1c369

Change-Id: If12e81ccfcf765b09439f14e1f848bed95209e6f
2018-01-29 22:16:39 +00:00
Nan Zhang
ffe2c1c369 Change syntax for jacoco filter wildcard params.
originally:
.* -> /**/*.class
now:
.* -> /*.class
.** -> /**/*.class

Also add NinjaAndShellEscape to allow filtering inner classes with $ in
the name.

Test: unittests.
Bug: b/71889972
Merged-In: Ifb8d7daa22bee02346885171edb15180af18f0de
Change-Id: Ifb8d7daa22bee02346885171edb15180af18f0de
(cherry picked from commit c61066684d5c8ddf600af602852c32fce6e6c6f4)
2018-01-29 12:46:26 -08:00
Pirama Arumuga Nainar
28316d4e3b Store missing profile files into a Make variable
Bug: http://b/72642679

Store missing profile files and the modules that refer to them in the
SOONG_MODULES_MISSING_PGO_PROFILE_FILE variable passed to Make.  The
contents of this variable will be written to
$DIST_DIR/pgo_profile_file_missing.txt as part of the 'dist' target.

Test: 'm dist' and verify creation of pgo_profile_file_missing.txt.
Change-Id: I237cd0398be418be2b7db6fa65ece5ef347ecbc1
2018-01-29 10:02:27 -08:00
Dan Willemsen
6e72ef7225 Move namespace mutator earlier to support defaults
The prebuilts and defaults mutators start adding some dependencies, so
for them to be able to reference imported modules, we need to
run the namespace mutator earlier.

Test: m nothing
Test: Try to use a global defaults module from a namespace
Change-Id: I6e853d20e32251d0fd33c8b2dcc26c0695b808fd
2018-01-26 20:21:18 -08:00
Pirama Arumuga Nainar
6fc800403a Merge "Support instrumenting all PGO-enabled modules" am: ad4692d5af
am: 4bae924254

Change-Id: I675d5f528923a6bf8e243ea700469798176acac6
2018-01-26 03:05:19 +00:00
Pirama Arumuga Nainar
4bae924254 Merge "Support instrumenting all PGO-enabled modules"
am: ad4692d5af

Change-Id: I4fad8cae6b95bfcbed8e5598b6c331d60bd7fb0c
2018-01-26 03:02:45 +00:00
Treehugger Robot
ad4692d5af Merge "Support instrumenting all PGO-enabled modules" 2018-01-26 02:52:44 +00:00
Dan Willemsen
aa01659bd1 Export system module library list to Make am: 1dde427375
am: 159ac4044b

Change-Id: Icf2b1331861084dbcca4eac895c896e49031e8cb
2018-01-26 01:07:31 +00:00
Dan Willemsen
159ac4044b Export system module library list to Make
am: 1dde427375

Change-Id: I51ec4199faa8b088fe9fd4679c690d8855a64dc9
2018-01-26 01:05:00 +00:00
Dan Willemsen
1dde427375 Export system module library list to Make
Bug: 38177569
Test: EXPERIMENTAL_USE_OPENJDK9=true m nothing
      check out/soong/Android-aosp_arm.mk
Change-Id: If35e913c7203c12f4305e74919c0df76a8443253
2018-01-25 14:51:50 -08:00
Stephen Hines
af0d71c83b Prebuilt sanitizer libraries should always come from linux-x86. am: 755fe07256
am: 11a27f61e3

Change-Id: Ie0a02d25ee83c5d42a052a7df3f2372f45427323
2018-01-25 14:57:34 +00:00
Stephen Hines
11a27f61e3 Prebuilt sanitizer libraries should always come from linux-x86.
am: 755fe07256

Change-Id: If34b470432858ede8af06dc2d1a6fe970fa16346
2018-01-25 14:55:03 +00:00
Jaekyun Seok
be16d5e84f Use product instead of oem for Product specific module am: 5cfbfbb67a
am: 2b6236308b

Change-Id: If550711035e62c0584abcc41cf5e9ea8be45c997
2018-01-25 04:11:53 +00:00
Jaekyun Seok
2b6236308b Use product instead of oem for Product specific module
am: 5cfbfbb67a

Change-Id: I3db5f0036c271d9e0b9e86ba139eec689dcac16d
2018-01-25 04:04:04 +00:00
Stephen Hines
755fe07256 Prebuilt sanitizer libraries should always come from linux-x86.
Bug: http://b/68397894
Test: Build on darwin with new toolchain.
Change-Id: I4d81efdc84d0b6f07482206430252ea63a4b081b
2018-01-24 19:58:36 -08:00
Jaekyun Seok
5cfbfbb67a Use product instead of oem for Product specific module
Bug: 64195575
Test: succeeded building product.img with BOARD_PRODUCTIMAGE_PARTITION_SIZE,
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE and PRODUCT_PRODUCT_VERITY_PARTITION.
Change-Id: Icc4f8c16bc389fe20db680849f311d02df1299c3
2018-01-25 07:50:35 +09:00
Andreas Gampe
4cba2cae61 Merge "Soong: support Errorprone javacflags" am: fdc2b3bebe
am: 1b1936c487

Change-Id: Ic695e451d51e36ef81bcb0f46845a0361f44cc1d
2018-01-24 20:04:12 +00:00
Andreas Gampe
1b1936c487 Merge "Soong: support Errorprone javacflags"
am: fdc2b3bebe

Change-Id: I67b78c4620c14eb0b3b2f7d03dc3a7afae4f68e1
2018-01-24 19:54:11 +00:00
Treehugger Robot
fdc2b3bebe Merge "Soong: support Errorprone javacflags" 2018-01-24 19:30:02 +00:00
Dan Willemsen
a1df46e11c Make GOROOT consistent am: e7945d76ac
am: d4b4154ee3

Change-Id: I7cef3ada4cde72509447eccf57567f942b85f743
2018-01-24 17:44:46 +00:00
Dan Willemsen
d4b4154ee3 Make GOROOT consistent
am: e7945d76ac

Change-Id: I823de19497ce5fdcde74b330ada8ab37ef1c2783
2018-01-24 17:42:47 +00:00
Dan Willemsen
e7945d76ac Make GOROOT consistent
We were previously setting GOROOT to "prebuilts/go/linux-x86" during the
ninja executions when we were running Soong. But we can also run Soong
during the main ninja execution, were GOROOT was unset. When the GOROOT
was unset, the default GOROOT in our Go installation is
"./prebuilts/go/linux-x86" (note the extra ./).

This would cause g.bootstrap.goRoot to change between some soong runs,
causing us to rebuild all go programs (and anything depending on them)
more often than necessary.

So instead, keep GOROOT undefined when running Soong. Everything that
matters is using runtime.GOROOT(), which will fall back to the default.

Continue setting $GOROOT for bootstrap.bash, otherwise it fails when
there is no system provided go binary. What we give bootstrap.bash
doesn't really matter, since we don't actually use the blueprint wrapper
in Android.

Test: m blueprint_tools; touch bionic/libc/tzcode/new.c;
      m blueprint_tools <doesn't rebuild everything>
Change-Id: I82f30c7c3b5d25e5cbf28fe37a97fdb776c4a164
2018-01-23 22:56:17 -08:00
Andreas Gampe
f3e5b558e7 Soong: support Errorprone javacflags
Add support for an errorprone block in Java modules that accepts
additional javacflags for the errorprone build.

Sample:

    errorprone: {
        javacflags: ["-Xep:EqualsNaN:WARN"],
    },

Bug: 72004718
Test: m RUN_ERROR_PRONE=true
Test: manual - add block with ERROR to a project
Test: androidmk_test
Change-Id: I502248fe76c26aa19102f413af72a7324c35b7f4
2018-01-23 20:30:01 -08:00
Justin Yun
27fa6a5ca8 Skip installing the VNDK prebuilt if arch does not match am: 312ccb974f
am: 04e36e89df

Change-Id: Ib5679d3295a8ee74bc2af17f26c1e0b20aab35ce
2018-01-23 23:07:09 +00:00
Justin Yun
04e36e89df Skip installing the VNDK prebuilt if arch does not match
am: 312ccb974f

Change-Id: If3e8194feb7ab337ef16fd6a30d1408a36194059
2018-01-23 23:03:35 +00:00
Justin Yun
312ccb974f Skip installing the VNDK prebuilt if arch does not match
For the VNDK prebuilt modules that does not match the target arch,
skip installing the module instead of marking the module to prevent
installing.

Bug: 72310137
Bug: 71787263
Test: Install VNDK snapshot v27
      lunch aosp_arm64_ab-userdebug; m vndk_v27_arm64
      - vndk libs must be installed
      m vndk_v27_arm
      - no vndk libs must be installed because target does not match
      OUT_DIR=out_clean m --skip-make

Change-Id: I9df25d90c276ce5e0d94ec7f9bee32f9ce7231df
2018-01-24 07:52:47 +09:00
Pirama Arumuga Nainar
33fd287631 Add only compiler-flag dependencies as implicit am: f231b19017
am: aaa3e473e9

Change-Id: I05ed494e3268e362ba551827a53eab6bccd5e0de
2018-01-23 22:11:23 +00:00
Pirama Arumuga Nainar
aaa3e473e9 Add only compiler-flag dependencies as implicit
am: f231b19017

Change-Id: Iee9cea01fc419c9a4df0b0ff5d2e82fa45f48390
2018-01-23 22:08:48 +00:00