platform_build_soong/cc
Stephen Crane f5b9b95f01 Work around LLVM bug where TLS not emulated in LTO mode
In LTO mode the backend constructs a target exclusively from command line flags,
without opportunity to accept code gen arguments from Clang. Clang does not
currently pass the -emulated-tls parameter for Android, even though it defaults
to emulated TLS for Android in non-LTO builds. Until this is fixed upstream, we
can explicitly specify that the LTO output for Android should use emulated TLS.

Test: build libandroid with LTO, verified that it uses __emutls_get_address
rather than __tls_get_addr.

Change-Id: I18acac41aac885fc6635fbd55f96ba7c845eb5e7
2017-08-15 13:18:11 -07:00
..
config Add LTO support to soong 2017-08-15 12:54:12 -07:00
androidmk.go Allow AndroidMkData.Custom handlers to extend normal values 2017-08-11 15:24:11 -07:00
binary.go Refactor factories 2017-06-30 21:08:36 +00:00
builder.go Add header-abi-linker dependency on so file. 2017-06-27 11:19:10 -07:00
cc.go Add LTO support to soong 2017-08-15 12:54:12 -07:00
cc_test.go Dedup exported flags from dependencies 2017-05-17 14:22:22 -07:00
check.go Ban --coverage now that we have native coverage 2017-02-14 13:05:48 -08:00
cmakelists.go Run gofmt 2017-05-09 13:44:49 -07:00
compiler.go cflags for vendor variants 2017-08-14 11:46:42 +09:00
coverage.go Refactor factories 2017-06-30 21:08:36 +00:00
gen.go Prettify soong ninja build descriptions 2017-05-10 11:04:16 -07:00
gen_stub_libs.py Add support for weak symbols in the NDK stubs. 2017-07-28 11:00:22 -07:00
installer.go Install VNDK libs in /system instead of /vendor 2017-07-18 14:48:29 +09:00
kernel_headers.go Fix kernel_headers module registration 2017-07-10 12:30:35 -07:00
library.go List of VNDK-related libs are exported to make 2017-08-10 14:15:39 +09:00
linker.go a shared lib header is not exported to vendors if it is in exclude_shared_libs 2017-08-14 11:40:54 +09:00
llndk_library.go Add to cflags in compilerFlags() 2017-07-19 11:53:54 -07:00
lto.go Work around LLVM bug where TLS not emulated in LTO mode 2017-08-15 13:18:11 -07:00
makevars.go List of VNDK-related libs are exported to make 2017-08-10 14:15:39 +09:00
ndk_headers.go Refactor factories 2017-06-30 21:08:36 +00:00
ndk_library.go Adapt to PLATFORM_VERSION_FUTURE_CODENAMES. 2017-08-02 17:14:10 -07:00
ndk_prebuilt.go Refactor factories 2017-06-30 21:08:36 +00:00
ndk_sysroot.go Prettify soong ninja build descriptions 2017-05-10 11:04:16 -07:00
object.go Refactor factories 2017-06-30 21:08:36 +00:00
prebuilt.go Rename java_prebuilt_library to java_import 2017-08-11 15:24:11 -07:00
proto.go Prettify soong ninja build descriptions 2017-05-10 11:04:16 -07:00
pylintrc Don't warn for TODOish comments. 2016-08-01 14:36:22 -07:00
relocation_packer.go Prettify soong ninja build descriptions 2017-05-10 11:04:16 -07:00
rs.go Prettify soong ninja build descriptions 2017-05-10 11:04:16 -07:00
sabi.go List of VNDK-related libs are exported to make 2017-08-10 14:15:39 +09:00
sanitize.go Remove error from AndroidMkData.Extra 2017-08-11 15:24:11 -07:00
stl.go Allow arch-specific stl selection 2017-07-20 16:59:26 -07:00
strip.go Separate cc.go 2016-07-29 15:17:58 -07:00
test.go Add support for data field in cc_benchmark. 2017-07-17 14:42:58 -07:00
test_data_test.go Add integration testing infrastructure 2017-07-14 14:19:51 -07:00
test_gen_stub_libs.py Add support for weak symbols in the NDK stubs. 2017-07-28 11:00:22 -07:00
tidy.go soong: add __clang_analyzer__ to clang-tidy 2017-05-04 01:19:02 +00:00
toolchain_library.go Refactor factories 2017-06-30 21:08:36 +00:00
util.go List of VNDK-related libs are exported to make 2017-08-10 14:15:39 +09:00
vndk.go List of VNDK-related libs are exported to make 2017-08-10 14:15:39 +09:00