summaryrefslogtreecommitdiff
path: root/lib/builtins/armv6m
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-07-10 10:06:42 +0000
committerTim Northover <tnorthover@apple.com>2014-07-10 10:06:42 +0000
commit0c7b1206d6e6c3500a7cb85f05c82a83b63d9736 (patch)
tree5928d70fe37c18b6f23ad818855617d936bd6cbd /lib/builtins/armv6m
parent44895ce925cd291e676b8e2bdd5bc07fe8a74f33 (diff)
MachO: add dummy armv6m architecture directory so clang_macho_embedded builds things.
Without some mention of armv6m in a subdirectory of builtins, the make code doesn't even know that armv6m exists and is something it should be looking for in the platform-specific Makefiles. This means that none of the functions listed actually get built and we end up with an almost entirely empty libclang_rt.a for armv6m. Unfortunately, the assembly code in the usual arm directory has no hope of running on armv6m, which only supports Thumb-1 (not even ARM mode), so adding it there won't work. Realistically, we probably *will* want to put any optimised versions in a separate directory, so creating it now is harmless. rdar://problem/17613576 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/armv6m')
-rw-r--r--lib/builtins/armv6m/Makefile.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/builtins/armv6m/Makefile.mk b/lib/builtins/armv6m/Makefile.mk
new file mode 100644
index 000000000..f3c1807f0
--- /dev/null
+++ b/lib/builtins/armv6m/Makefile.mk
@@ -0,0 +1,20 @@
+#===- lib/builtins/arm/Makefile.mk -------------------------*- Makefile -*--===#
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+#===------------------------------------------------------------------------===#
+
+ModuleName := builtins
+SubDirs :=
+OnlyArchs := armv6m
+
+AsmSources := $(foreach file,$(wildcard $(Dir)/*.S),$(notdir $(file)))
+Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file)))
+ObjNames := $(Sources:%.c=%.o) $(AsmSources:%.S=%.o)
+Implementation := Optimized
+
+# FIXME: use automatic dependencies?
+Dependencies := $(wildcard lib/*.h $(Dir)/*.h)