diff options
Diffstat (limited to 'debian/patches/ubuntu-precise-compiler-rt.diff')
-rw-r--r-- | debian/patches/ubuntu-precise-compiler-rt.diff | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/ubuntu-precise-compiler-rt.diff b/debian/patches/ubuntu-precise-compiler-rt.diff new file mode 100644 index 0000000..86523bb --- /dev/null +++ b/debian/patches/ubuntu-precise-compiler-rt.diff @@ -0,0 +1,23 @@ +Index: llvm-toolchain-3.7-3.7/compiler-rt/make/platform/clang_linux.mk +=================================================================== +--- llvm-toolchain-3.7-3.7.orig/compiler-rt/make/platform/clang_linux.mk ++++ llvm-toolchain-3.7-3.7/compiler-rt/make/platform/clang_linux.mk +@@ -21,7 +21,7 @@ ifneq ($(findstring -linux-,$(CompilerTa + + # Define configs only if arch in triple is i386 or x86_64 + CompilerTargetArch := $(firstword $(subst -, ,$(CompilerTargetTriple))) +-ifeq ($(call contains,i386 x86_64 i586,$(CompilerTargetArch)),true) ++ifeq ($(call contains,i386 x86_64 i586 i686,$(CompilerTargetArch)),true) + + # TryCompile compiler source flags + # Returns exit code of running a compiler invocation. +@@ -35,7 +35,7 @@ + echo $$?) + + test_source = $(ProjSrcRoot)/make/platform/clang_linux_test_input.c +-ifneq (,$(filter $(CompilerTargetArch),i386 i586)) ++ifneq (,$(filter $(CompilerTargetArch),i386 i586 i686)) + SupportedArches := i386 + ifeq ($(call TryCompile,$(CC),$(test_source),-m64),0) + SupportedArches += x86_64 + |