diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-01-18 06:49:33 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-01-18 06:49:33 +0000 |
commit | 48464e0ee1c2de5bcbf0d609348f55d0c301085d (patch) | |
tree | ba4925beb5fbba97626df7306b3c452ffe52ceae /make/lib_util.mk | |
parent | ba990c4981acfa55893e809e5c72de2800e6bf0c (diff) |
Add support for "platform" configurations, which define a suite of compiler-rt
libraries to generate.
- Each library may be built with different flags and for different
architectures, and there is support for building Darwin style fat archives.
- Uses an ambituous amount of make programming, but should be hidden to
users and developers.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@93720 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'make/lib_util.mk')
-rw-r--r-- | make/lib_util.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/make/lib_util.mk b/make/lib_util.mk index 0ff662614..089a0e2ed 100644 --- a/make/lib_util.mk +++ b/make/lib_util.mk @@ -2,6 +2,15 @@ # # This should be included following 'lib_info.mk'. +# Function: GetCNAVar variable-name platform-key config arch +# +# Get a per-config-and-arch variable value. +GetCNAVar = $(strip \ + $(or $($(2).$(1).$(3).$(4)), \ + $($(2).$(1).$(3)), \ + $($(2).$(1).$(4)), \ + $($(2).$(1)))) + # Function: SelectFunctionDir config arch function-name optimized # # Choose the appropriate implementation directory to use for 'function-name' in |