[PATCH] D97080: [flang][driver] Add -fintrinsic-modules-path option

Arnamoy B via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 18 06:27:19 PDT 2021


arnamoy10 added inline comments.


================
Comment at: flang/lib/Frontend/CompilerInvocation.cpp:292
+  std::string driverPath = llvm::sys::fs::getMainExecutable(nullptr, nullptr);
+  driverPath = driverPath.substr(0, driverPath.size() - 9);
+  return driverPath.append("/../include/flang/");
----------------
bryanpkc wrote:
> Can you use `llvm::sys::path::remove_filename` here?
Thank you.  This seems like a better option, but I could not make it work.  For the sake of time I am keeping this hard coded manipulation.  It can be improved in a later revision.


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

https://reviews.llvm.org/D97080



More information about the cfe-commits mailing list