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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to