diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-04-12 09:43:57 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-04-12 09:43:57 +0000 |
commit | 5b952b72e1a484e1773312c86e84e2c221c246b2 (patch) | |
tree | f1fc0c66492bcef19ba5e223d89bf24032b961eb /lib/Makefile.mk | |
parent | c2f2d0c008c68f237959a765f9b7d20ca2acdb98 (diff) |
Don't build atomic.c when building compiler-rt using make
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Makefile.mk')
-rw-r--r-- | lib/Makefile.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Makefile.mk b/lib/Makefile.mk index 8394af3a8..37aaa9c46 100644 --- a/lib/Makefile.mk +++ b/lib/Makefile.mk @@ -17,8 +17,13 @@ SubDirs += i386 ppc x86_64 arm 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 |