aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/android/java/com/google/devtools/build/android/Aapt2ResourceShrinkingAction.java
diff options
context:
space:
mode:
authorGravatar jingwen <jingwen@google.com>2018-03-06 17:58:56 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-03-06 18:01:31 -0800
commit67627d3034de3b66431abfb0d178a0c27408a30b (patch)
treec0c300182b05879bc826707dbb10521ec97d945c /src/tools/android/java/com/google/devtools/build/android/Aapt2ResourceShrinkingAction.java
parente2d200f32a7242898a5c976837bd3b8e6dfed62c (diff)
Use -isystem instead of -I for NDK header search paths.
This suppresses warnings from the NDK headers from users. This also fixes the correct include search paths, because -isystem dirs are searched _after_ -I dirs. https://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html#Directory-Options "You can use -I to override a system header file, substituting your own version, since these directories are searched before the standard system header file directories. However, you should not use this option to add directories that contain vendor-supplied system header files; use -isystem for that. The -isystem and -idirafter options also mark the directory as a system directory, so that it gets the same special treatment that is applied to the standard system directories." RELNOTES[FIX]: Fixed NDK r15/r16 system include search paths to use -isystem instead of -I. PiperOrigin-RevId: 188111072
Diffstat (limited to 'src/tools/android/java/com/google/devtools/build/android/Aapt2ResourceShrinkingAction.java')
0 files changed, 0 insertions, 0 deletions