[PATCH] D54884: [bugpoint] Find 'opt', etc., in bugpoint directory

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 2 17:41:22 PST 2018


MatzeB accepted this revision.
MatzeB added a comment.

I certainly was always annoyed that bugpoint wouldn't pick up the tools in the same build directory forcing me to manually specify paths to the tools.
However unfortunately this isn't going far enough and will still search the tools in PATH first, which can still be annoying as in my experience you can often have llvm developer tools installed by your distribution/package managers etc. in your PATH.

So while I'm fine applying this patch (with the test problems addressed), I'd even vote to search inside the bugpoint directory first before checking the PATH. Happy to hear some other opinions though and/or apply this in the meantime.



================
Comment at: test/BugPoint/compile-custom.ll:1
-; 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="%/s.py arg1 arg2" --output-prefix %t %s | FileCheck %s
 ; REQUIRES: loadable_module
----------------
Won't this pick up an `opt` in the PATH now if one is available? That would make the test unstable.

Similar in the other tests.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D54884/new/

https://reviews.llvm.org/D54884





More information about the llvm-commits mailing list