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

Bryan Chan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 13 10:09:11 PST 2021


bryanpkc 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/");
----------------
Can you use `llvm::sys::path::remove_filename` here?


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

https://reviews.llvm.org/D97080



More information about the cfe-commits mailing list