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

Arnamoy B via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 11 15:31:16 PST 2021


arnamoy10 added inline comments.


================
Comment at: flang/lib/Frontend/CompilerInvocation.cpp:293
+  driverPath = driverPath.substr(0, driverPath.size() - 9);
+  return driverPath.append("/../tools/flang/include/flang/");
+}
----------------
tskeith wrote:
> Does this work for an install? I think there the path would be `include/flang` rather than `tools/flang/include/flang`.
You are probably right, I am giving the path w.r.t a build.  Can we make the assumption that there should be always an install?  Or do we determine if we flang-new is coming from build or install (by checking if a module file is present through ls)  and then set the path accordingly?


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

https://reviews.llvm.org/D97080



More information about the cfe-commits mailing list