summaryrefslogtreecommitdiff
path: root/make/subdir.mk
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-01-18 06:49:33 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-01-18 06:49:33 +0000
commit48464e0ee1c2de5bcbf0d609348f55d0c301085d (patch)
treeba4925beb5fbba97626df7306b3c452ffe52ceae /make/subdir.mk
parentba990c4981acfa55893e809e5c72de2800e6bf0c (diff)
downloadcompiler-rt-48464e0ee1c2de5bcbf0d609348f55d0c301085d.tar.gz
compiler-rt-48464e0ee1c2de5bcbf0d609348f55d0c301085d.tar.bz2
compiler-rt-48464e0ee1c2de5bcbf0d609348f55d0c301085d.tar.xz
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/subdir.mk')
-rw-r--r--make/subdir.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/make/subdir.mk b/make/subdir.mk
index b0981dcb..900f7e6a 100644
--- a/make/subdir.mk
+++ b/make/subdir.mk
@@ -74,7 +74,11 @@ endif
endef
# Evaluate this now so we do not have to worry about order of evaluation.
-SubDirsList := $(SubDirs:%=$(Dir)/%)
+
+SubDirsList := $(strip \
+ $(if $(call streq,.,$(Dir)),\
+ $(SubDirs),\
+ $(SubDirs:%=$(Dir)/%)))
ifeq ($(SubDirsList),)
else
ifneq ($(DEBUGMAKE),)