tskeith 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:
> arnamoy10 wrote:
> > 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?
> I think it should work in a build or an install. The `flang/tools/f18/flang`
> script checks for `include/flang` first and if that doesn't exist it uses
> `tools/flang/include/flang` so you could do the same. It would be good if we
> could fix the build or install so that the location is consistent.
I've created D98522 to make the relative path be `include/flang` in both build
and install. If no one objects, that should make it so you don't need
conditional code here, just use `"/../include/flang"`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97080/new/
https://reviews.llvm.org/D97080
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits