[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

Richard Barton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 17 00:56:10 PST 2020


richard.barton.arm added inline comments.


================
Comment at: clang/test/Driver/flang/clang-driver-2-frontend01.f90:10
+! RUN: cp %clang %t1
+! RUN: %clang --driver-mode=flang -fortran-fe %basename_t.tmp1 -### %s 2>&1 | FileCheck --check-prefixes=ALL %s
+
----------------
CarolineConcatto wrote:
> richard.barton.arm wrote:
> > Does %t1 not work again on this line?
> If I don't create the fake link getProgramPath will only return the name, not the entire path.
> t1 here is the path for the frontend.  
> For instance:
> clang --driver-mode=flang -fortran-fe %test
> the frontend name is test, but when running it should print:
>  <path-to-test>/test -fc1
>  without the link it will only print:
> test -fc1
> Like I said before it is more a preference that actually a requisite.
Understood - thanks.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D73951





More information about the cfe-commits mailing list