diff options
author | Ying Wang <wangying@google.com> | 2014-02-06 18:08:44 -0800 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2014-02-07 09:11:22 -0800 |
commit | 1f9828387d8d3d0b1a02f99633ac58a68aa366ad (patch) | |
tree | f693f0e7a1eb0348a7e107af923601943025d270 /core/clang/x86_64.mk | |
parent | 8b20d5b97e98ddac6031cb555078f425aef1da8f (diff) | |
download | build-1f9828387d8d3d0b1a02f99633ac58a68aa366ad.zip build-1f9828387d8d3d0b1a02f99633ac58a68aa366ad.tar.gz build-1f9828387d8d3d0b1a02f99633ac58a68aa366ad.tar.bz2 |
Refactor llvm_config.mk and support the 2nd arch
1. Following the setup of gcc in build/core/combo/,
we added the [HOST|TARGET]_<arch>.mk clang config files,
and load only the configs needed by the current product.
2. Added support for the 2nd arch.
Change-Id: I2a383418a9688a050b39492f8e489d40eeeb5f2d
Diffstat (limited to 'core/clang/x86_64.mk')
-rw-r--r-- | core/clang/x86_64.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/core/clang/x86_64.mk b/core/clang/x86_64.mk new file mode 100644 index 0000000..cba10d4 --- /dev/null +++ b/core/clang/x86_64.mk @@ -0,0 +1,18 @@ +# Clang flags for x86_64 arch, target or host. + +CLANG_CONFIG_x86_64_EXTRA_ASFLAGS := +CLANG_CONFIG_x86_64_EXTRA_CFLAGS := +CLANG_CONFIG_x86_64_EXTRA_LDFLAGS := + +# Include common unknown flags +CLANG_CONFIG_x86_64_UNKNOWN_CFLAGS := \ + $(CLANG_CONFIG_UNKNOWN_CFLAGS) \ + -finline-limit=300 \ + -fno-inline-functions-called-once \ + -mfpmath=sse \ + -mbionic + +# We don't have any x86_64 flags to substitute yet. +define subst-clang-incompatible-x86_64-flags + $(1) +endef |