[PATCH] D55161: [test] Fix BugPoint/compile-custom.ll to use detected python exec

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 1 06:03:02 PST 2018


mgorny created this revision.
mgorny added reviewers: krytarowski, stella.stamenova, vsk, chapuni, dblaikie.

Spawn the custom compile command in BugPoint/compile-custom.ll via
%python rather than relying on implicit 'env python' shebang, in order
to fix it on systems that don't have 'python' executable such as NetBSD.


Repository:
  rL LLVM

https://reviews.llvm.org/D55161

Files:
  test/BugPoint/compile-custom.ll


Index: test/BugPoint/compile-custom.ll
===================================================================
--- test/BugPoint/compile-custom.ll
+++ test/BugPoint/compile-custom.ll
@@ -1,4 +1,4 @@
-; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext --compile-custom --compile-command="%/s.py arg1 arg2" --opt-command opt --output-prefix %t %s | FileCheck %s
+; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext --compile-custom --compile-command="%python %/s.py arg1 arg2" --opt-command opt --output-prefix %t %s | FileCheck %s
 ; REQUIRES: loadable_module
 
 ; Test that arguments are correctly passed in --compile-command.  The output


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55161.176252.patch
Type: text/x-patch
Size: 652 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181201/bb4ce5f6/attachment.bin>


More information about the llvm-commits mailing list