diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2011-12-02 02:31:32 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2011-12-02 02:31:32 +0000 |
| commit | a48d32bc9c5f6cfcde7234ab1d81fdccb051c7b7 (patch) | |
| tree | 8b5e94eeee8508a8e5d67e9aeaffa426c5b60abe /clang/runtime/compiler-rt | |
| parent | af6431077c98f72c8d3c5f8451aea1d7dcd962fc (diff) | |
| download | bcm5719-llvm-a48d32bc9c5f6cfcde7234ab1d81fdccb051c7b7.tar.gz bcm5719-llvm-a48d32bc9c5f6cfcde7234ab1d81fdccb051c7b7.zip | |
runtime/Linux: Initial support for tying compiler-rt build into Clang build on
Linux.
- Currently just builds a full library, and only on x86, and only for the
target arch.
llvm-svn: 145672
Diffstat (limited to 'clang/runtime/compiler-rt')
| -rw-r--r-- | clang/runtime/compiler-rt/Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/clang/runtime/compiler-rt/Makefile b/clang/runtime/compiler-rt/Makefile index a8cd2e981d6..3e047fcf6f2 100644 --- a/clang/runtime/compiler-rt/Makefile +++ b/clang/runtime/compiler-rt/Makefile @@ -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 #### |

