[PATCH] D79842: [clang][Driver] Correct tool search path priority

David Spickett via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 13 03:11:40 PDT 2020


DavidSpickett marked an inline comment as done.
DavidSpickett added inline comments.


================
Comment at: clang/test/Driver/program-path-priority.c:72
+// <default-triple>-gcc has lowest priority
+// RUN: default_triple=$(%t/clang --version | grep -oP "(?<=Target:\s).*")
+// RUN: touch %t/${default_triple}-gcc
----------------
Pretty sure I'm stretching the limits here, probably not suitable for Windows. I hoped to be able to capture the default triple in a CHECK line, then use it in a following RUN line. (though thinking about how FileCheck works, that isn't possible)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D79842





More information about the cfe-commits mailing list