Build rule updates for aosp

Various build rule changes to match AOSP:
Add libunwind_llvm and libdl as dependencies for libc++ on device
Always add libcompiler_rt-extras as a dependency
Add libm, libc, and libdl as depnendencies for libc++ static binaries
Disable some clang warnings, and add some clang filtered cflags
Add -fstack-protector to host linux builds
Add jack_flags property to java modules (currently ignored)

Change-Id: Ic0da617bdeaf25f58cb8298dd9ea91b7d6509151
This commit is contained in:
Colin Cross
2015-04-28 13:30:13 -07:00
parent b05bff2f26
commit 74d1ec0c2c
5 changed files with 131 additions and 26 deletions

View File

@@ -15,15 +15,18 @@ var clangUnknownCflags = []string{
"-funswitch-loops",
"-Wmaybe-uninitialized",
"-Wno-error=maybe-uninitialized",
"-Wno-error=unused-but-set-parameter",
"-Wno-error=unused-but-set-variable",
"-Wno-free-nonheap-object",
"-Wno-literal-suffix",
"-Wno-maybe-uninitialized",
"-Wno-old-style-declaration",
"-Wno-psabi",
"-Wno-unused-but-set-variable",
"-Wno-unused-but-set-parameter",
"-Wno-unused-but-set-variable",
"-Wno-unused-local-typedefs",
"-Wunused-but-set-parameter",
"-Wunused-but-set-variable",
// arm + arm64 + mips + mips64
"-fgcse-after-reload",
@@ -65,6 +68,14 @@ func init() {
// Help catch common 32/64-bit errors.
"-Werror=int-conversion",
// Disable overly aggressive warning for macros defined with a leading underscore
// This happens in AndroidConfig.h, which is included nearly everywhere.
"-Wno-reserved-id-macro",
// Disable overly aggressive warning for format strings.
// Bug: 20148343
"-Wno-format-pedantic",
// Workaround for ccache with clang.
// See http://petereisentraut.blogspot.com/2011/05/ccache-and-clang.html.
"-Wno-unused-command-line-argument",