[PATCH] D13091: Support recent versions of Ubuntu

Sylvestre Ledru via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 23:43:31 PDT 2015

sylvestre.ledru updated this revision to Diff 35589.
sylvestre.ledru added a comment.

Implement Alexey requests



Index: make/platform/clang_linux.mk
--- make/platform/clang_linux.mk
+++ make/platform/clang_linux.mk
@@ -19,9 +19,9 @@
 # Only define configs if we detected a linux target.
 ifneq ($(findstring -linux-,$(CompilerTargetTriple)),)
-# Define configs only if arch in triple is i386 or x86_64
+# Define configs only if arch in triple is i386, i585, i686 or x86_64
 CompilerTargetArch := $(firstword $(subst -, ,$(CompilerTargetTriple)))
-ifeq ($(call contains,i386 x86_64,$(CompilerTargetArch)),true)
+ifeq ($(call contains,i386 i586 i686 x86_64,$(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
-ifeq ($(CompilerTargetArch),i386)
+ifeq ($(call contains,i386 i586 i686,$(CompilerTargetArch)),true)
   SupportedArches := i386
   ifeq ($(call TryCompile,$(CC),$(test_source),-m64),0)
     SupportedArches += x86_64

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13091.35589.patch
Type: text/x-patch
Size: 1055 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150924/ff37fc24/attachment.bin>

More information about the llvm-commits mailing list