[PATCH] gold: Make powerpc support optional for the tests.
Peter Collingbourne
peter at pcc.me.uk
Tue Mar 17 15:39:34 PDT 2015
Hi rafael,
http://reviews.llvm.org/D8400
Files:
test/lit.cfg
test/tools/gold/mtriple.ll
Index: test/lit.cfg
===================================================================
--- test/lit.cfg
+++ test/lit.cfg
@@ -354,8 +354,10 @@
if len(fields) != 3:
return False
emulations = fields[2].split()
- if 'elf32ppc' not in emulations or 'elf_x86_64' not in emulations:
+ if 'elf_x86_64' not in emulations:
return False
+ if 'elf32ppc' in emulations:
+ config.available_features.add('ld_emu_elf32ppc')
ld_version = subprocess.Popen([config.gold_executable, '--version'], stdout = subprocess.PIPE)
if not 'GNU gold' in ld_version.stdout.read().decode():
Index: test/tools/gold/mtriple.ll
===================================================================
--- test/tools/gold/mtriple.ll
+++ test/tools/gold/mtriple.ll
@@ -1,3 +1,5 @@
+; REQUIRES: ld_emu_elf32ppc
+
; RUN: llvm-as %s -o %t.o
; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so -m elf32ppc \
; RUN: -plugin-opt=mtriple=powerpc-linux-gnu \
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8400.22138.patch
Type: text/x-patch
Size: 967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150317/59a3b03f/attachment.bin>
More information about the llvm-commits
mailing list