From 48464e0ee1c2de5bcbf0d609348f55d0c301085d Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 18 Jan 2010 06:49:33 +0000 Subject: 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 --- make/lib_util.mk | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'make/lib_util.mk') diff --git a/make/lib_util.mk b/make/lib_util.mk index 0ff66261..089a0e2e 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 -- cgit v1.2.3