From 931fc0db4ae4a2b63c81bee65186bd181368a5cd Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Wed, 30 Aug 2017 12:23:30 -0400 Subject: Add support for LLVM bitcode target --- src/build-data/cc/clang.txt | 9 +++------ src/build-data/cc/gcc.txt | 3 --- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'src/build-data/cc') diff --git a/src/build-data/cc/clang.txt b/src/build-data/cc/clang.txt index 2afd530d3..865809792 100644 --- a/src/build-data/cc/clang.txt +++ b/src/build-data/cc/clang.txt @@ -31,22 +31,17 @@ makefile_style gmake darwin -> "$(CXX) -dynamiclib -fPIC -install_name $(INSTALLED_LIB_DIR)/$(SONAME_ABI) -current_version $(DARWIN_CURRENT_VER) -compatibility_version $(DARWIN_COMPATIBILITY_VER)" -darwin-debug -> "$(CXX) -dynamiclib -fPIC -install_name $(INSTALLED_LIB_DIR)/$(SONAME_ABI) -current_version $(DARWIN_CURRENT_VER) -compatibility_version $(DARWIN_COMPATIBILITY_VER)" # The default works for GNU ld and several other Unix linkers default -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME_ABI)" -default-debug -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME_ABI)" darwin -> "$(LINKER) -headerpad_max_install_names" -darwin-debug -> "$(LINKER) -headerpad_max_install_names" linux -> "$(LINKER) -Wl,-rpath=\$$ORIGIN" -linux-debug -> "$(LINKER) -Wl,-rpath=\$$ORIGIN" freebsd -> "$(LINKER) -Wl,-rpath=\$$ORIGIN" -freebsd-debug -> "$(LINKER) -Wl,-rpath=\$$ORIGIN" default -> "$(LINKER)" -default-debug -> "$(LINKER)" +llvm -> "llvm-link" @@ -64,6 +59,8 @@ altivec -> "-maltivec" +all_llvm -> "-emit-llvm -fno-use-cxa-atexit" + x86_32 -> "-march=SUBMODEL" x86_64 -> "-march=SUBMODEL" nehalem -> "-march=corei7" diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt index 5ace1931c..fdada6a3d 100644 --- a/src/build-data/cc/gcc.txt +++ b/src/build-data/cc/gcc.txt @@ -37,7 +37,6 @@ makefile_style gmake # The default works for GNU ld and several other Unix linkers default -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME_ABI)" -default-debug -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME_ABI)" # Darwin, HP-UX and Solaris linkers use different syntax darwin -> "$(CXX) -dynamiclib -fPIC -install_name $(LIBDIR)/$(SONAME_ABI)" @@ -51,9 +50,7 @@ openbsd -> "$(CXX) -shared -fPIC" linux -> "$(LINKER) -Wl,-rpath=\$$ORIGIN" -linux-debug -> "$(LINKER) -Wl,-rpath=\$$ORIGIN" default -> "$(LINKER)" -default-debug -> "$(LINKER)" -- cgit v1.2.3