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
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
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