Skip to content

Commit

Permalink
runtime/Linux: Initial support for tying compiler-rt build into Clang…
Browse files Browse the repository at this point in the history
… build on

Linux.
 - Currently just builds a full library, and only on x86, and only for the
   target arch.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145672 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ddunbar committed Dec 2, 2011
1 parent c5f9a01 commit ff98652
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion runtime/compiler-rt/Makefile
Expand Up @@ -82,10 +82,23 @@ RuntimeLibrary.darwin.Configs := \

# On Darwin, fake Clang into using the iOS assembler (since compiler-rt wants to
# build ARM bits).
ifeq ($(OS),Darwin)
CLANG_CCFLAGS += -ccc-install-dir \
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/
endif

# On Linux, include a library which has all the runtime functions.
ifeq ($(OS),Linux)
RuntimeDirs += linux
RuntimeLibrary.linux.Configs :=

# We currently only try to generate runtime libraries on x86.
ifeq ($(ARCH),x86)
RuntimeLibrary.linux.Configs += full-i386
endif
ifeq ($(ARCH),x86_64)
RuntimeLibrary.linux.Configs += full-x86_64
endif

endif

####
Expand Down

0 comments on commit ff98652

Please sign in to comment.