[llvm] 50f1d45 - [PowerPC][AIX] Don't hardcode python invoke command line

Jinsong Ji via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 10:47:52 PDT 2020


Author: Jinsong Ji
Date: 2020-09-17T17:47:41Z
New Revision: 50f1d4517ae46a43b9bd1b488cc632b65de0dbbe

URL: https://github.com/llvm/llvm-project/commit/50f1d4517ae46a43b9bd1b488cc632b65de0dbbe
DIFF: https://github.com/llvm/llvm-project/commit/50f1d4517ae46a43b9bd1b488cc632b65de0dbbe.diff

LOG: [PowerPC][AIX] Don't hardcode python invoke command line

We shouldn't assume python exists, we should let lit
to decide whether it is python or python3 and expand the path.

Added: 
    

Modified: 
    llvm/test/CodeGen/PowerPC/aix-overflow-toc.py

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/PowerPC/aix-overflow-toc.py b/llvm/test/CodeGen/PowerPC/aix-overflow-toc.py
index f2263a31be8b..e04491bff2fb 100644
--- a/llvm/test/CodeGen/PowerPC/aix-overflow-toc.py
+++ b/llvm/test/CodeGen/PowerPC/aix-overflow-toc.py
@@ -1,6 +1,6 @@
 # UNSUPPORTED: expensive_checks, debug
 
-# RUN: python %s > %t.ll
+# RUN: %python %s > %t.ll
 # RUN: llc -mtriple powerpc-ibm-aix-xcoff -code-model=small -mcpu=pwr4 -mattr=-altivec -O0 < %t.ll | \
 # RUN:   FileCheck --check-prefix=ASM32 %s
 


        


More information about the llvm-commits mailing list