[PATCH] D68391: [RISCV] Improve sysroot computation if no GCC install detected
Edward Jones via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 3 07:35:24 PDT 2019
edward-jones added a comment.
Before falling back to returning the empty string this first looks for a directory with the triple name up one level from the driver.
This uses the Triple string in the path, however this Triple has been normalized so even if the user specifies "clang --target=riscv32-unknown-elf", it will use "riscv32-unknown-unknown-elf" when looking for the sysroot. I am wondering whether it would be sensible to do a more "intelligent" search for the sysroot here by iteratively stripping "unknown"s from the triple.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68391/new/
https://reviews.llvm.org/D68391
More information about the cfe-commits
mailing list