Commit Graph

5333 Commits

Author SHA1 Message Date
Colin Cross
59ec9ffe3c Merge changes Iae2bda98,I68e64888,I75af16e7 am: d03553cf13
am: f053a45ad9

Change-Id: I968b4b4ba70ccc68915f85dd0422312a68a5ebd9
2017-11-15 01:45:58 +00:00
Colin Cross
f053a45ad9 Merge changes Iae2bda98,I68e64888,I75af16e7
am: d03553cf13

Change-Id: I775a10c73ab21f6afb102e7a0a1d8ef42d061137
2017-11-15 01:44:15 +00:00
Jiyong Park
76681e64f7 Merge "Make cc.NewLLndkStubLibrary as public" am: 31c3239038
am: bd913486bf

Change-Id: Ic3ccbfe2c5144d80d396b16ca0d9e1474931a7fc
2017-11-15 01:39:19 +00:00
Colin Cross
d6d86c35a0 Merge changes I5059a1e3,I5a06a893 am: fff8ad2f35
am: 7b38d380bd

Change-Id: I1dc6685b64010b007a23de99e5ff92b344d2816c
2017-11-15 01:38:49 +00:00
Dan Willemsen
f57c903864 Merge "Update default configuration" am: 90377447c8
am: ebe75b0228

Change-Id: Ic067f7a82dd14af87cb48fe911331c7267ad1885
2017-11-15 01:38:04 +00:00
Treehugger Robot
d03553cf13 Merge changes Iae2bda98,I68e64888,I75af16e7
* changes:
  Remove gcc-specific optimizations
  Move some flags to affect all devices
  Move -fvisibility-inlines-hidden to global device cppflags
2017-11-15 01:34:46 +00:00
Jiyong Park
bd913486bf Merge "Make cc.NewLLndkStubLibrary as public"
am: 31c3239038

Change-Id: I360c2eaa52ad750e0948a0f16aa82c963d54f6bb
2017-11-15 01:29:46 +00:00
Colin Cross
7b38d380bd Merge changes I5059a1e3,I5a06a893
am: fff8ad2f35

Change-Id: If2bde9159092b2b2dfcb1cc03885781555875db0
2017-11-15 01:29:17 +00:00
Dan Willemsen
ebe75b0228 Merge "Update default configuration"
am: 90377447c8

Change-Id: I6a064a213953d4279f185af19f2efa7fed4bfb98
2017-11-15 01:28:57 +00:00
Treehugger Robot
31c3239038 Merge "Make cc.NewLLndkStubLibrary as public" 2017-11-15 00:56:46 +00:00
Xin Li
8035ca7823 Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD
Change-Id: I85dfcf813be6bb22efee6ba9e930f4789041576a
2017-11-14 16:38:04 -08:00
Colin Cross
fff8ad2f35 Merge changes I5059a1e3,I5a06a893
* changes:
  Add --write_if_changed argument to soong_zip
  Add searchable android.DirectorySortedPaths
2017-11-14 23:44:25 +00:00
Treehugger Robot
90377447c8 Merge "Update default configuration" 2017-11-14 22:27:48 +00:00
Xin Li
359ff31875 Merge commit '1b7d80ae5c2edda4f50f9299a5daf93d43b20d5f' into HEAD
Change-Id: I9bee9e27bfbef55d89b2c92f4a8bd85f7edfdd18
2017-11-14 11:38:41 -08:00
Colin Cross
b37620f870 Remove gcc-specific optimizations
These flags were added for gcc, but are always stripped out when
compiling for clang.  Since gcc is barely used, removed them.

Bug: 68855788
Bug: 68947919
Test: m checkbuild
Change-Id: Iae2bda9808dd9499848ce145ccdf71c4c490b80e
2017-11-14 17:43:33 +00:00
Colin Cross
ea3141d06d Move some flags to affect all devices
Move -fdata-sections and -fno-short-enums to global device flags.
-fdata-sections was not previously set on x86[_64], -fno-short-enums
was not previously set on mips[64].

Bug: 68855788
Test: m checkbuild
Change-Id: I68e64888d5414fc022366eb2b6c5cd92c28a5542
2017-11-14 17:43:24 +00:00
Jiyong Park
64ca4b722a Make cc.NewLLndkStubLibrary as public
We need to extend llndk_library to automatically set symbol_file for the
llndk version of libclang_rt.asan* libraries.

Bug: 67011251
Test: build

Change-Id: Ib6964817759f9228456e4fb2a27fce3bc09423a9
2017-11-14 20:53:13 +09:00
Colin Cross
5adf52face Merge "Revert "Test for dangling rules in make checkbuild"" am: c7d1254119
am: d7837c555a

Change-Id: Iaf5169cba2f59169dc925eee2edc0142f1f3ad22
2017-11-14 02:05:02 +00:00
Colin Cross
513c3df4c6 Merge "Test for dangling rules in make checkbuild" am: df93350ccd
am: 99bde85caa

Change-Id: I66100b6bd6982158639c8f3a3e72a6437e94e9f6
2017-11-14 02:04:43 +00:00
Nan Zhang
b84d38dc2e Merge "Change remaining properties to *string, *bool in Soong." am: bafc47aea6
am: 0791bbf4ca

Change-Id: Iddebcb1141747cc8b5ce3a6faaed92ca0eebff49
2017-11-14 02:04:06 +00:00
Dan Willemsen
ea1cc75c1a Merge "Send soong output to std.log in multiproduct_kati" am: 08bb51cdc5
am: 4c6416c021

Change-Id: Ie2128ca5f4e333e9f026d74ab1d54bfcc1171ac8
2017-11-14 02:03:41 +00:00
Pirama Arumuga Nainar
e5d53e9cdf Merge "Re-enable -Wunknown-warning-option" am: cc178b3e78
am: e25bbfdc04

Change-Id: I7fa6114b5d63b52e291fcfc7ee02afa1a070a035
2017-11-14 01:28:44 +00:00
Colin Cross
d7837c555a Merge "Revert "Test for dangling rules in make checkbuild""
am: c7d1254119

Change-Id: Ib9d84f0ebad31b2cdb14117c4d985f94bb53325a
2017-11-13 23:47:12 +00:00
Colin Cross
c7d1254119 Merge "Revert "Test for dangling rules in make checkbuild"" 2017-11-13 23:41:24 +00:00
Colin Cross
fb941913a3 Revert "Test for dangling rules in make checkbuild"
This reverts commit 7709a05770.

Reason for revert: Broke mac checkbuilds

Change-Id: If71ec9198ca8943d90ce9d5e3a277faf239e38a5
2017-11-13 23:38:57 +00:00
Colin Cross
26f14509d1 Move -fvisibility-inlines-hidden to global device cppflags
It was previously set on arm[64] and mips[64], this will cause it
to be set for x86[_64] too.

Bug: 68855788
Test: m checkbuild
Change-Id: I75af16e7d259963ad633cc664929144332bb435d
2017-11-13 15:18:19 -08:00
Colin Cross
f83c150269 Add --write_if_changed argument to soong_zip
Simplify making restat rules by adding a --write_if_changed argument
to soong_zip that generates the output file into memory and then
compares it to the version on disk before writing it out.

Test: builds
Change-Id: I5059a1e3a11e79b0ca538b3b829bc7479c126ce6
2017-11-13 15:11:08 -08:00
Colin Cross
5e6cfbead9 Add searchable android.DirectorySortedPaths
Add an android.DirectorySortedPaths that stores paths sorted such
that all paths in a directory including subdirectories are in a
contiguous subslice.  This will allow efficient O(log(N)) finding
of all paths in a directory using a binary search on the directory
prefix.

Test: TestDirectorySortedPaths in paths_test.go
Change-Id: I5a06a89351ae06e88c06526be54a6b79075361b7
2017-11-13 15:11:08 -08:00
Colin Cross
99bde85caa Merge "Test for dangling rules in make checkbuild"
am: df93350ccd

Change-Id: Ia375a2520cdd20a672262a9ac05fd063bf5de875
2017-11-13 22:52:43 +00:00
Dan Willemsen
cbf9e827a7 Update default configuration
This isn't often used, but the values were quite old. So update them to
something closer to aosp_arm64 from today.

Bug: 68803744
Test: m clean; m --skip-make libc
Change-Id: Id5c60b62e7c7a91635dea9669fc604d63d299778
2017-11-13 14:46:44 -08:00
Treehugger Robot
df93350ccd Merge "Test for dangling rules in make checkbuild" 2017-11-13 22:43:30 +00:00
Colin Cross
7709a05770 Test for dangling rules in make checkbuild
Get a list of leaf nodes in the dependency graph
from ninja, and make sure none of them are in the
output directory.  This ensures that there are no
rules that depend on a file in the output directory
that doesn't have rule to generate it.  The check
will catch a common set of build failures where
a rule to generate a file is deleted (either by
deleting a module in an Android.mk file, or by
modifying the build system incorrectly).  These
failures are often not caught by a local incremental
build because the previously built files are still
present in the output directory.

Bug: 36843214
Bug: 68062417
Test: manual
Change-Id: I4933187e8b72f2ef0c32d18ffea756e2c6fa417c
2017-11-13 12:47:42 -08:00
Nan Zhang
0791bbf4ca Merge "Change remaining properties to *string, *bool in Soong."
am: bafc47aea6

Change-Id: Iac23c846f87e6f7f607c9fa812da2cb6491019f3
2017-11-13 19:10:22 +00:00
Treehugger Robot
bafc47aea6 Merge "Change remaining properties to *string, *bool in Soong." 2017-11-13 19:04:56 +00:00
Dan Willemsen
4c6416c021 Merge "Send soong output to std.log in multiproduct_kati"
am: 08bb51cdc5

Change-Id: Ieee3e2c9b9245bb80c7c46aecb1241822d8f733f
2017-11-12 01:39:38 +00:00
Treehugger Robot
08bb51cdc5 Merge "Send soong output to std.log in multiproduct_kati" 2017-11-12 01:33:47 +00:00
Dan Willemsen
f196396a1c Send soong output to std.log in multiproduct_kati
Instead of throwing it away (though it would also be in soong.log along
with the verbose messages).

Test: build/soong/build_test.bash with ctx.Println added
Change-Id: I64f8b11ab6752a6be8a5934fb41e30439238e331
2017-11-11 15:44:51 -08:00
Pirama Arumuga Nainar
e25bbfdc04 Merge "Re-enable -Wunknown-warning-option"
am: cc178b3e78

Change-Id: I14ba3bb5577ad4379271867c91ac2a6a3b00be23
2017-11-11 13:34:42 +00:00
Treehugger Robot
cc178b3e78 Merge "Re-enable -Wunknown-warning-option" 2017-11-11 13:29:23 +00:00
Colin Cross
127149ea12 Merge "Add presingletons" am: 62255a7687
am: a0f01cda41

Change-Id: I31abd3322ce459173d95e0bfd24951ac75689540
2017-11-11 01:02:03 +00:00
Colin Cross
a0f01cda41 Merge "Add presingletons"
am: 62255a7687

Change-Id: Icdaa84994e19cc439ec92392672b0597840f509c
2017-11-11 01:00:35 +00:00
Colin Cross
62255a7687 Merge "Add presingletons" 2017-11-11 00:53:53 +00:00
Dan Willemsen
2409facf73 Merge "pom2mk: Allow setting LOCAL_SDK_VERSION" am: dbe8b78a5d
am: 1bf562160b

Change-Id: If7f05e7956946d0db6a7361c83577ce56a87a181
2017-11-11 00:00:58 +00:00
Dan Willemsen
1bf562160b Merge "pom2mk: Allow setting LOCAL_SDK_VERSION"
am: dbe8b78a5d

Change-Id: I5922bc8bdfbd680c3d750ea1f102e8a53e219af3
2017-11-10 23:58:59 +00:00
Treehugger Robot
dbe8b78a5d Merge "pom2mk: Allow setting LOCAL_SDK_VERSION" 2017-11-10 23:53:44 +00:00
Colin Cross
e9e395f787 Merge "Add OncePer.Get()" am: a0059915d1
am: 2717c7cf3c

Change-Id: Id1ecf0ebb6359b1458dc23733c6b09309f6380be
2017-11-10 22:53:59 +00:00
Colin Cross
2717c7cf3c Merge "Add OncePer.Get()"
am: a0059915d1

Change-Id: I76c0305d228b939e1065e9905e1aae9865fff8db
2017-11-10 22:51:54 +00:00
Colin Cross
a0059915d1 Merge "Add OncePer.Get()" 2017-11-10 22:48:38 +00:00
Dan Willemsen
15a8e793f3 pom2mk: Allow setting LOCAL_SDK_VERSION
For unbundled builds, LOCAL_SDK_VERSION needs to be set, otherwise we'll
try to use frameworks-res, which isn't available.

Bug: 64723465
Test: Use with prebuilts/sdk/update_current.py
Change-Id: If5e1233b4bcb09b3d0e2251e8dd1a8ecfc87eb19
2017-11-10 14:03:48 -08:00
Pirama Arumuga Nainar
4c0e1bf4e0 Re-enable -Wunknown-warning-option
Bug: http://b/68236396

This warning only needs to be enabled for frameworks/base/core/jni.

Test: Build the topic
Change-Id: I9f6aab2045f135d691696f9fd461c895a5aadb38
2017-11-10 13:54:47 -08:00