[llvm-commits] [compiler-rt] r154583 - /compiler-rt/trunk/lib/Makefile.mk

Alexey Samsonov samsonov at google.com
Thu Apr 12 02:43:57 PDT 2012


Author: samsonov
Date: Thu Apr 12 04:43:57 2012
New Revision: 154583

URL: http://llvm.org/viewvc/llvm-project?rev=154583&view=rev
Log:
Don't build atomic.c when building compiler-rt using make

Modified:
    compiler-rt/trunk/lib/Makefile.mk

Modified: compiler-rt/trunk/lib/Makefile.mk
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/Makefile.mk?rev=154583&r1=154582&r2=154583&view=diff
==============================================================================
--- compiler-rt/trunk/lib/Makefile.mk (original)
+++ compiler-rt/trunk/lib/Makefile.mk Thu Apr 12 04:43:57 2012
@@ -17,8 +17,13 @@
 SubDirs += asan
 SubDirs += profile
 
+# FIXME: We don't currently support building an atomic library, and as it must
+# be a separate library from the runtime library, we need to remove its source
+# code from the source files list.
+ExcludedSources := atomic.c
+
 # Define the variables for this specific directory.
-Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file)))
+Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(filter-out $(ExcludedSources),$(notdir $(file))))
 ObjNames := $(Sources:%.c=%.o)
 Implementation := Generic
 





More information about the llvm-commits mailing list