Commit graph

5709 commits

Author SHA1 Message Date
Ivan Lozano
a8388ac9e6 Merge "Revert "Support enabling overflow sanitization by path.""
am: e021b0405d

Change-Id: Iaeceb0c8afece1ac7f2664e92de40f624da156ab
2018-01-20 04:00:31 +00:00
Treehugger Robot
e021b0405d Merge "Revert "Support enabling overflow sanitization by path."" 2018-01-20 03:54:23 +00:00
Dan Willemsen
51bb0698ec Merge "Add Nan to OWNERS"
am: af71ddfe28

Change-Id: I3134df47d72875661efbfd43c7155eb47035ac10
2018-01-20 02:04:59 +00:00
Treehugger Robot
af71ddfe28 Merge "Add Nan to OWNERS" 2018-01-20 01:59:37 +00:00
Ivan Lozano
b7d0f52337 Revert "Support enabling overflow sanitization by path."
This reverts commit 17df3c1b76.

Change-Id: Id5dab777da591c24113c3048b8606547a661afdd
2018-01-20 01:44:38 +00:00
Dan Albert
c0004669b6 Merge "Update NdkMaxPrebuiltVersionInt."
am: 4fe7c6aee8

Change-Id: Id46cc747c082e64d5c26ab3cd02c579d7a06ae0f
2018-01-19 23:56:04 +00:00
Treehugger Robot
4fe7c6aee8 Merge "Update NdkMaxPrebuiltVersionInt." 2018-01-19 23:48:32 +00:00
Ivan Lozano
a613b55860 Merge "Support enabling overflow sanitization by path."
am: c1fecc2dfa

Change-Id: I20a412c972f20016cfc230575864adfdbab2a4b9
2018-01-19 16:03:01 +00:00
Ivan Lozano
c1fecc2dfa Merge "Support enabling overflow sanitization by path." 2018-01-19 15:55:38 +00:00
Justin Yun
b94713329c Merge "VNDK snapshot modules must have vndk subdirectory"
am: d40471c7c8

Change-Id: I14eeafb91e36aa835e8b5383dec04d89f780dedd
2018-01-19 07:52:25 +00:00
Treehugger Robot
d40471c7c8 Merge "VNDK snapshot modules must have vndk subdirectory" 2018-01-19 07:14:27 +00:00
Jayant Chowdhary
d9ec9ad566 Merge "Use -advice-only for libraries which do not export headers."
am: b0712e8014

Change-Id: I3c9386d1adda4291c7556031aeefea25d8f32e0f
2018-01-19 05:28:00 +00:00
Treehugger Robot
b0712e8014 Merge "Use -advice-only for libraries which do not export headers." 2018-01-19 05:20:33 +00:00
Justin Yun
ce7fe752b4 Include VNDK snapshot modules only if the arch matches
am: 74c3f5c9d1

Change-Id: Iab52e9f039a9147974fbb540b8f4a6afcd519b38
2018-01-19 04:16:42 +00:00
Justin Yun
3e15b96234 VNDK snapshot modules must have vndk subdirectory
VNDK snapshot modules must have vndk subdirectory for their
LOCAL_MODULE_PATH regardless of BOARD_VNDK_VERSION definition.
The snapshot target output file must be not changed.

Bug: 71782197
Test: Build marlin with snapshot in the source and boot
Change-Id: I2b6ec9a5c20d6a5014f690d4eb8e6cd7b3b2f2fa
2018-01-19 12:19:24 +09:00
Justin Yun
74c3f5c9d1 Include VNDK snapshot modules only if the arch matches
If the target_arch for the snapshot module does not match with
the build variable TARGET_ARCH, hide the module from the make file.

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

Change-Id: I32ab5004832a4164e1b2c056ad149ede50828b92
2018-01-19 09:48:45 +09:00
Jayant Chowdhary
e44995078f Use -advice-only for libraries which do not export headers.
While diffing abi, for libraries which do not export headers, use
-advice-only.

Test: Create reference dump for libdl; mm -j64; header-abi-diff gets
      invoked with '-advice-only'.

Test: Create reference dump for libjpeg; mm -j64; header-abi-diff gets
      invoked without '-advice-only'.

Bug: 71768219

Change-Id: I678346081f15088388f223f1276d0b0c42d2a8c2
2018-01-18 15:52:43 -08:00
Dan Willemsen
278d07dd8e Add Nan to OWNERS
Test: None
Change-Id: I3ba8feab4c389747780aa4d910ec9e2f9363500e
2018-01-18 15:48:48 -08:00
Ivan Lozano
17df3c1b76 Support enabling overflow sanitization by path.
Handle paths variable provided from Make about where integer overflow
sanitization should be enabled by default, and prepare to enable minimal
runtime diagnostics for integer overflow sanitizers in userdebug/eng builds.

This provides Soong support for on-by-default paths from Make for
integer overflow sanitization.

Bug: 30969751
Bug: 63927620
Test: Include paths passed from Make are being sanitized.
Test: Compilation succeeds with and without diagnostics enabled.
Test: See Make patch for further test notes.

Change-Id: I803a75646cc27ef5b4b5b74b8eb2981c39f8a6a3
2018-01-18 14:16:47 -08:00
Dan Albert
c715eda106 Update NdkMaxPrebuiltVersionInt.
We have newer NDK prebuilts now.

Test: make checkbuild
Bug: None
Change-Id: I00ba5d1638832bc0feff46599afbaa201294fdad
2018-01-18 13:25:41 -08:00
Pirama Arumuga Nainar
1fd9199527 Update profile_file discovery rules
am: 64946fec54

Change-Id: I6c77cbdf699c5626512ebe26b9382fbd5f50754f
2018-01-18 20:41:21 +00:00
Pirama Arumuga Nainar
64946fec54 Update profile_file discovery rules
Bug: http://b/63768402

Profile files are searched in multiple directories in a pre-define list,
instead of just one.

PGO profile_file enforcement is also removed - profile_file dependency
and -fprofile-use are added iff the profile_file is present.

Test: Build https://android-review.googlesource.com/c/474805 with
.profdata files in vendor/google_data/pgo-profiles and
toolchain/pgo-profiles and verify expected behavior.

Change-Id: I2604713a8a7a682bd5c6bde569dc32335be5eca9
Merged-In: I2604713a8a7a682bd5c6bde569dc32335be5eca9
2018-01-18 10:26:34 -08:00
Jayant Chowdhary
807df5b8d1 Merge "Remove the use of version scripts with header-abi-linker."
am: 85935a2f9c

Change-Id: Idda410c48a934b831f6cd331b428a1e9a20dee1c
2018-01-18 18:09:57 +00:00
Jayant Chowdhary
85935a2f9c Merge "Remove the use of version scripts with header-abi-linker." 2018-01-18 17:51:33 +00:00
Sundong Ahn
be0a67a88f change vsdk_v$(ver) to system_sdk_v$(ver)
am: b5b5b2667d

Change-Id: I6670045df779e866975cc746229675608d7beaa9
2018-01-18 07:15:12 +00:00
Jayant Chowdhary
df344d57b0 Remove the use of version scripts with header-abi-linker.
Version scripts were earlier used as a symbol map, primarily for llndk
libraries. Since they do have stub libraries which contain symbols, we
shall use them instead, to internally form symbol maps in
header-abi-linker.

Test: mm -j64 in bionic/libdl, header-abi-linker gets invoked with
      -so <so-file> rather than -v <version-script>

Change-Id: Ifb67dc34457a997f37cc9f71ca16ad068e9b44c1
2018-01-17 11:17:40 -08:00
Sundong Ahn
b5b5b2667d change vsdk_v$(ver) to system_sdk_v$(ver)
The vsdk name is change to system sdk, so vsdk_v$(ver) need to
change to system_sdk_v$(ver)

Bug: 67724799
Test: build & boot on taimen
Change-Id: I9ac508f5ed2602fbf827e0b0e4c205ab01915525
2018-01-16 09:51:03 +09:00
Stephen Hines
4bf625d7e6 Merge "Remove unnecessary DeviceUsesClang."
am: 2e020842dc

Change-Id: I092e3952f6cd3674b0013d34e981e4a0f7ab68f7
2018-01-12 18:27:04 +00:00
Stephen Hines
2e020842dc Merge "Remove unnecessary DeviceUsesClang." 2018-01-12 18:19:45 +00:00
Dan Albert
dc77da610b Merge "Disable availability macros in libc++ on Darwin."
am: 2835af801c

Change-Id: I2cf20b5b03a33cc68d11da80f8f9ef2fdcd25a65
2018-01-12 05:51:22 +00:00
Dan Willemsen
c13dcf49aa Merge "Remove armv5te"
am: 7d3e0709a5

Change-Id: Id032a1c917ca31313a15468ee8216b6b40cfc885
2018-01-12 05:51:08 +00:00
Treehugger Robot
2835af801c Merge "Disable availability macros in libc++ on Darwin." 2018-01-12 05:46:22 +00:00
Treehugger Robot
7d3e0709a5 Merge "Remove armv5te" 2018-01-12 05:41:11 +00:00
Dan Willemsen
6988b6c95a Merge "Apply kati output rewriting to dumpvars"
am: eb21c04f9c

Change-Id: I75d1d2262cb04c9032c437dd0755ca3275e1f757
2018-01-12 00:03:25 +00:00
Treehugger Robot
eb21c04f9c Merge "Apply kati output rewriting to dumpvars" 2018-01-11 22:56:25 +00:00
Stephen Hines
6ea0f81c3f Remove unnecessary DeviceUsesClang.
This build function is unnecessary now that GCC is completely
unsupported for Android platform builds. It is similar to
USE_CLANG_PLATFORM_BUILD from the build/make side of things.

Bug: http://b/64032869
Test: Builds
Change-Id: Iddf5f91cc997c337c77a644265cb8dc4e5a915b4
2018-01-11 14:29:41 -08:00
Dan Albert
a07b84598f Disable availability macros in libc++ on Darwin.
libc++'s headers are annotated with availability macros that indicate
which version of Mac OS was the first to ship with a libc++ feature
available in its *system's* libc++.dylib. We do not use the system's
library, but rather ship our own. As such, these availability
attributes are meaningless for us but cause build breaks when we try
to use code that would not be available in the system's dylib.

Test: removed the darwin check and checked showcommands on linux
Bug: None
Change-Id: I3d328d7363eba83f1cb857c8abfd6cd0173a3058
2018-01-11 13:00:46 -08:00
Stephen Hines
38ec40c42d Merge "Switch back to llvm-ar (with crsD flags only)."
am: 4acd66ae94

Change-Id: I52c68a1bad793ba07a2b586263aa2dfd2c08c7df
2018-01-11 07:42:44 +00:00
Treehugger Robot
4acd66ae94 Merge "Switch back to llvm-ar (with crsD flags only)." 2018-01-11 07:36:07 +00:00
Stephen Hines
f1addebb44 Switch back to llvm-ar (with crsD flags only).
This properly sets -format=gnu for all non-Darwin targets, because
llvm-ar is cross-platform (but defaults to the host environment).

Bug: http://b/71618641
Test: m checkbuild
Change-Id: Ic5bce7e237ea0cadfa1f96ea151d41115d8c56b8
2018-01-10 15:57:49 -08:00
Dan Willemsen
ca74968941 Merge "Switch to build-tools bison"
am: f3768f5011

Change-Id: I6c07886f86ca8b4161422e07459624d5d8d44d5f
2018-01-10 22:38:33 +00:00
Dan Willemsen
f3768f5011 Merge "Switch to build-tools bison" 2018-01-10 21:49:28 +00:00
Dan Albert
2932a27e64 Merge "Remove support for stlport."
am: 2605a61f2d

Change-Id: I22f1bf07c1e96847440ff441065bef2dbb73da01
2018-01-09 23:44:54 +00:00
Treehugger Robot
2605a61f2d Merge "Remove support for stlport." 2018-01-09 23:38:39 +00:00
Dan Willemsen
0c51851f08 Apply kati output rewriting to dumpvars
This way we strip out ANSI codes when using dumb terminals. It's likely
overkill to use katiRewriteOutput, but we should rarely see any output
on stderr while dumping variables. This also lets us turn on kati_stats.

Bug: 71729611
Test: lunch missing-eng             (colored error)
Test: lunch missing-eng 2>&1 | cat  (non-colored)
Test: TERM=dumb lunch missing-eng   (non-colored)
Change-Id: Ic63fd42d82a4a64e5c68aecd9ae0f242a0d703f1
2018-01-09 02:24:17 -08:00
Dan Willemsen
6f46a38e56 Switch to build-tools bison
Test: m
Test: mma system/tools/hidl
Change-Id: I467c63792082ef335f2d7788d538db76e9e91d87
2018-01-08 17:34:47 -08:00
Dan Willemsen
e401a8315e Remove armv5te
This architecture only existed for unbundled use, but even the NDK is
removing support in their r17 release, so just remove support for it.

Test: build/soong/build_test.bash -only-soong
Change-Id: I4bd23babf567128d2d242cbdee3311abb198dd7c
2018-01-08 15:48:25 -08:00
Steven Moreland
e18f12064b Merge "Add target.vendor.override_export_include_dirs."
am: e6f4ee2061

Change-Id: Id5c24f6adc3de879f031a9775b26de4b2e698ea7
2018-01-08 22:23:22 +00:00
Treehugger Robot
e6f4ee2061 Merge "Add target.vendor.override_export_include_dirs." 2018-01-08 22:15:51 +00:00
Yi Kong
59f8ed8df3 Merge "Revert "Switch to llvm-ar (with crsD flags only).""
am: 8a832c3e6d

Change-Id: I2e49da1f28ced8c8c87b0c834ec5f5a063a9643b
2018-01-08 19:58:26 +00:00