Commit Graph

6456 Commits

Author SHA1 Message Date
Yi Kong
13bc31d6e1 Switch to llvm-ar (with crsD flags only).
llvm-ar is required for platform LTO build.

Bug: 71618641
Test: m checkbuild
Change-Id: Idecea9fbe5dcbb1023dbe90047e3f9535d953440
2018-01-04 23:52:44 -08:00
Colin Cross
065413bd0f Merge "Fix crash on test failure" am: e7fa3b1b74 am: 9ef9ffb0d0
am: 69778fb867

Change-Id: I8f083ebe40773f6ee93dabd8b98c3a689c44bc80
2018-01-04 20:49:54 +00:00
Treehugger Robot
e7fa3b1b74 Merge "Fix crash on test failure" 2018-01-04 20:35:38 +00:00
Chih-Hung Hsieh
775edde1f8 Add default -Werror to hardware/qcom projects
Bug: 66996870
Test: normal build
Change-Id: Ic8b6a5ea808fbd0f377c7bac002a9b03bf8236be
2018-01-04 20:12:01 +00:00
Chih-hung Hsieh
fa3fbbb58a Merge "Call clang-tidy with -fno-caret-diagnostics by default." am: 0d9868c9af am: dc15e3487e
am: 858b306a2b

Change-Id: I03a39346da388405b407f86b6eba0eb397e0a01b
2018-01-04 19:17:05 +00:00
Chih-hung Hsieh
0d9868c9af Merge "Call clang-tidy with -fno-caret-diagnostics by default." 2018-01-04 19:05:16 +00:00
Chih-Hung Hsieh
669cb9150e Call clang-tidy with -fno-caret-diagnostics by default.
* clang -fno-caret-diagnostics
  suppresses warning source lines, carets, and
  the stats line of "n warnings generated"
* clang-tidy -extra-arg-before=-fno-caret-diagnotics
  only suppresses the "n warnings generated" line.
* Pass this flag and -quiet to clang-tidy when
  WITH_TIDY is not 1 or true.

Bug: 69051430
Test: normal build and build with WITH_TIDY=1

Change-Id: I34e34cddc0e7329e73b5f04da4b1458dabfcd4c8
2018-01-04 01:41:16 -08:00
Jae Shin
1146c6cdfa Add target_arch to vndk prebuilt module name am: 43ef264b3a am: 36ea7e5a99
am: 0f31dbb82e

Change-Id: I8b38494e66a1501a19ce034d901cf44c711b774a
2018-01-04 02:26:52 +00:00
Jae Shin
43ef264b3a Add target_arch to vndk prebuilt module name
To distinguish libfoo.vndk.$VER prebuilts of various
vndk_v$VER_$ARCH phony package modules, append $ARCH to the
LOCAL_MODULE name for VNDK prebuilts.
e.g. libfoo.vndk.$VER becomes libfoo.vndk.$VER.$ARCH

Test: m -j PRODUCT_EXTRA_VNDK_VERSIONS=27
Bug: 71370248
Change-Id: I3e9ebd929111ceb48e362c500adfb4b7a94444e8
2018-01-04 11:02:39 +09:00
Colin Cross
95d33fe631 Fix crash on test failure
Don't check objs[0] and objs[1] if len(objs) != 2.

Test: cc_test.go
Change-Id: I2ba459a683764691ebf28db3944d7a1e9088eb76
2018-01-03 16:03:06 -08:00
Colin Cross
3f342dc62c Add VisitDirectDepsWithTag am: ee6143cde2 am: 3b986ef4e3
am: 00c6c91ad5

Change-Id: I4062d6dd2969dec940f4fdcb109b9d072aa14fbb
2018-01-03 02:38:09 +00:00
Colin Cross
ee6143cde2 Add VisitDirectDepsWithTag
Add a method on ModuleContext and TopDownMutatorContext to visit
direct dependencies that have a given dependency tag.

Test: m checkbuild
Change-Id: Ib875563091dcae6b7282b3e3427d0eb07d8c8af5
2018-01-02 18:23:43 -08:00
Colin Cross
ab996ef6b0 Move string list utility functions to android package am: b4330e222b am: cda9710157
am: 796ecdfc99

Change-Id: I5594bcdacdfe468cad9e42d2810fe9ae9fc7fd19
2017-12-28 19:32:41 +00:00
Colin Cross
b4330e222b Move string list utility functions to android package
Test: m checkbuild
Change-Id: I50a7ccf9fd7ed82b688e3eb90489c0bc0af33287
2017-12-28 17:41:02 +00:00
dimitry
bfed3dd658 Merge "Ignore 'extern "C++"' section in a version script" am: cd406fa70b am: 7edc7a525b
am: 9aad0743b3

Change-Id: I66dda440c4f000abf6d74f0968345eb0bee9ba8a
2017-12-21 18:38:53 +00:00
Jiyong Park
eb7b1a2490 Merge "Add [soc|device|product]_specific" am: 95fba1a8f8 am: 0fffd6bca4
am: 4500bca56d

Change-Id: I6a3457b18df366aec5767ddb98314872e15be124
2017-12-21 18:35:16 +00:00
Treehugger Robot
cd406fa70b Merge "Ignore 'extern "C++"' section in a version script" 2017-12-21 15:13:34 +00:00
Pirama Arumuga Nainar
ba5b3b326f Merge "Add 'openmp' compiler property" am: 91aa9f9d54 am: 29d92cef6d
am: 503e4228e2

Change-Id: I73b64239be698900a6b5b8d56c48f092c0e44c1b
2017-12-21 09:39:42 +00:00
Jiyong Park
2db7692a74 Add [soc|device|product]_specific
Added three properties (soc_specific, device_specific, and
product_specific) that shows what a module is specific to.

`soc_specific: true` means that the module is specific to an SoC
(System-On-a-Chip) and thus need to be installed to vendor partition.
This has the same meaning as the old `vendor: true` setting.

`device_specific: true` means that the module is specific to the entire
hardware configuration of a device includeing the SoC and off-chip
peripherals. These modules are installed to odm partition (or /vendor/odm
when odm partition does not exist).

`product_specific: true` means that the module is specific to the
software configuration of a product such as country, network operator,
etc. These modules are installed to oem partition (or /system/oem when
oem partition does not exist). These modules are assumed to be agnostic
to hardware, so this property can't be true when either soc_specific or
device_specific is set to true.

Bug: 68187740
Test: Build. path_tests amended.
Change-Id: I44ff055d87d53b0d2676758c506060de54cbffa0
2017-12-21 12:16:29 +09:00
Pirama Arumuga Nainar
fadb7b511a Add 'openmp' compiler property
Bug: http://b/70692399

If a module has 'openmp: true', add '-fopenmp' to CFlags during any
compile step and pass the libomp runtime to the linker during any link
step.

Test: Build samples in http://aosp/572924
Change-Id: Ic2a6410ec69aae548edaf582ee41659b0058561e
2017-12-19 23:14:19 -08:00
Pirama Arumuga Nainar
c7d514a4bb Merge "Add compile-time pathDeps as implicit dependencies" am: 6f86613420 am: 3867026195
am: 37c922d9e9

Change-Id: I503f78deb721f384efc798439680a6efc2ad2ebd
2017-12-20 04:15:35 +00:00
Treehugger Robot
6f86613420 Merge "Add compile-time pathDeps as implicit dependencies" 2017-12-20 04:05:39 +00:00
Chih-Hung Hsieh
6e1f32d777 Merge "Add default -Werror to hardware/libhardware/modules" am: 750e6fab06 am: c7a4d098ae
am: 2644fe6ce2

Change-Id: Ibafeab9fe4cb64d001c21a155c0561c88ec96f58
2017-12-20 00:19:31 +00:00
Treehugger Robot
750e6fab06 Merge "Add default -Werror to hardware/libhardware/modules" 2017-12-20 00:08:36 +00:00
Pirama Arumuga Nainar
70ba5a38d1 Add compile-time pathDeps as implicit dependencies
Bug: http://b/70820751
Bug: http://b/70857959

Clang does not output file dependencies from the -fprofile-use= flag
during -MD/-MM.  Add this and other path dependencies as implicit Ninja
dependencies.  Generated header dependencies are retained as OrderOnly
dependencies.

Test: Perturb profdata files for hwui/skia in internal branch and verify
that the sources get rebuilt.

Change-Id: I3247d995ee27a4882172eb15ff36acf56536b6f7
2017-12-19 15:44:38 -08:00
Dan Albert
54ef4909d8 Merge "Expose the NDK STLs to make." am: b267295324 am: 106619f427
am: 83a587cae0

Change-Id: I6c5580306f47fbe1845946fae9e24d4e2dfc4c8a
2017-12-19 01:02:58 +00:00
Treehugger Robot
b267295324 Merge "Expose the NDK STLs to make." 2017-12-19 00:29:52 +00:00
Chih-Hung Hsieh
b2a0c07acd Merge "Call clang-tidy with -quiet unless WITH_TIDY is set." am: 26e5a168bf am: 0d21f37967
am: e69e914241

Change-Id: Iede77c495b7cfc2581a98c88c139da84ff42bb0d
2017-12-16 21:11:18 +00:00
Treehugger Robot
26e5a168bf Merge "Call clang-tidy with -quiet unless WITH_TIDY is set." 2017-12-16 21:02:06 +00:00
Chih-Hung Hsieh
dc0c0302e9 Call clang-tidy with -quiet unless WITH_TIDY is set.
* Default builds calls clang-tidy only if enabled locally.
  In this case, clang-tidy should be quiet.
* If WITH_TIDY is 1 or true, let clang-tidy emit default messages.
* Even with -quiet and all warnings are suppressed,
  clang-tidy emits one line message of the number of suppressed messages.
  This one-liner could be suppressed in future changes.

Bug: 69051430
Test: default build and build with WITH_TIDY=1
Change-Id: I45303149930b33544e271e6d5eeddf18c9e48d7a
2017-12-15 20:57:48 -08:00
Dan Albert
3b39891a03 Merge "Allow NDK static libraries to use the NDK sysroot." am: 2555b259ad am: e46f70f290
am: 208994db79

Change-Id: I6f92d270997ec38a5c36943181201c4d8cc0528e
2017-12-16 03:25:22 +00:00
Treehugger Robot
2555b259ad Merge "Allow NDK static libraries to use the NDK sysroot." 2017-12-16 03:14:43 +00:00
Chih-Hung Hsieh
41fe048372 Add default -Werror to hardware/libhardware/modules
Bug: 66996870
Test: normal build
Change-Id: I0e38533b0fa2970524ac98eca25b2c2fd472fc31
2017-12-15 18:08:36 -08:00
Dan Albert
4cc813ff37 Merge "Add basic NDK STL link type check." am: 81f139bcff am: 6cb35c2087
am: 28af00c50d

Change-Id: Iea8bcf9160b67b5c042e1024986d39c029685255
2017-12-15 23:58:59 +00:00
Treehugger Robot
81f139bcff Merge "Add basic NDK STL link type check." 2017-12-15 23:50:13 +00:00
Chih-Hung Hsieh
0d8bf27847 Add default -Werror to tools/adt/idea am: 77abc230f6 am: bf72465fd3
am: ee170208dc

Change-Id: I62707c7407a082958311a009add3f1b306838145
2017-12-15 23:48:25 +00:00
Chih-Hung Hsieh
dcccdab2e4 Add default -Werror to external/skia. am: 1ef5ed54ee am: 943a85a871
am: 3f9aa6f69f

Change-Id: I7135333910a92fa9cc6b0df797e4433cfeaa060c
2017-12-15 23:47:03 +00:00
Chih-Hung Hsieh
77abc230f6 Add default -Werror to tools/adt/idea
Bug: 66996870
Test: normal build
Change-Id: Id5493eacf546d3246f501ca70bac26312837947e
2017-12-15 23:37:11 +00:00
Chih-Hung Hsieh
1ef5ed54ee Add default -Werror to external/skia.
Test: normal build
Change-Id: If66639a9000865e14c1ad5288b8642dfe5583f56
2017-12-15 23:34:33 +00:00
Chih-hung Hsieh
62e99477c7 Merge "Add default -Werror to frameworks/av/drm/mediacas" am: cc64cfd81f am: 1bae56fe92
am: b3f81fd304

Change-Id: Ib7e28e86b26706415313fe1cbad607bbd453f8b2
2017-12-15 23:23:47 +00:00
Dan Albert
25d3c7f111 Merge "Don't install host or VNDK libs to the NDK." am: d0e4cc1dc4 am: 48a1ab930a
am: d002d7197b

Change-Id: I5a8c9d993898790367b9e75f655199c2164ca4e8
2017-12-15 23:23:13 +00:00
Chih-hung Hsieh
cc64cfd81f Merge "Add default -Werror to frameworks/av/drm/mediacas" 2017-12-15 23:08:42 +00:00
Dan Albert
d0e4cc1dc4 Merge "Don't install host or VNDK libs to the NDK." 2017-12-15 23:00:21 +00:00
Dan Albert
8ba131b3e2 Expose the NDK STLs to make.
Without this any module exposed to make that uses an NDK STL will
have unsatisfied dependencies.

Test: make native
Bug: None
Change-Id: Ia456cdc230d5ebf5e1256ab131ab78248b790bc8
2017-12-15 14:51:30 -08:00
Dan Albert
202fe493e3 Add basic NDK STL link type check.
Test: make native
Bug: None
Change-Id: If883fade38c837839857d82f294c459b0dae1ce0
2017-12-15 13:56:59 -08:00
Yi Kong
a4109944ff Merge "Propagate LTO type from binary/DSO to object files" am: 85ae70556e am: 41b1a39e79
am: ffea3fbfae

Change-Id: Ie4345ae5bcdf015a320fa3d8b7c266ca7872200a
2017-12-15 21:53:57 +00:00
Yi Kong
85ae70556e Merge "Propagate LTO type from binary/DSO to object files" 2017-12-15 21:36:02 +00:00
Pirama Arumuga Nainar
0186020d3e Merge "Add cflags sub-property to 'pgo'" am: ec6cf6afde am: 8a35c35e1e
am: 1d3dda22e1

Change-Id: Ice7125306ae72398309b8048cc4768f721a40a4d
2017-12-15 21:29:22 +00:00
Treehugger Robot
ec6cf6afde Merge "Add cflags sub-property to 'pgo'" 2017-12-15 21:10:58 +00:00
Chih-Hung Hsieh
c2996ff701 Add default -Werror to frameworks/av/drm/mediacas
Bug: 66996870
Test: normal build
Change-Id: I7af738fd1543c6c44279bbc13b02b0273e9d6533
2017-12-15 18:26:44 +00:00