[Openmp-commits] [PATCH] D100810: Use `GNUInstallDirs` to support custom installation dirs. -- LLVM
John Ericson via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Oct 11 12:18:24 PDT 2021
Ericson2314 marked 2 inline comments as done.
Ericson2314 added a comment.
Removed extraneous StringRef conversion after previous D111322 <https://reviews.llvm.org/D111322> was landed.
Comment at: llvm/tools/llvm-config/llvm-config.cpp:361
+ SmallString<256> Path(StringRef(LLVM_INSTALL_INCLUDEDIR));
+ sys::fs::make_absolute(ActivePrefix, Path);
> Ericson2314 wrote:
> > Ericson2314 wrote:
> > > compnerd wrote:
> > > > Why the temporary `StringRef`? Can you not just initialize `Path` with the literal?
> > > I'm not sure. I would think so too, but the old code was also using `StringRef` so I just followed cargo culted and went with it.
> > Should I, say, submit a separate patch trying to remove the existing one?
> I opened D111322 for this. If that passes CI and lands, I have the next version of this without `StringRef` ready to go.
Fix issue now.
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
More information about the Openmp-commits