HomePhabricator

[RISCV] Improve sysroot computation if no GCC install detected

Authored by edward-jones on Oct 3 2019, 6:49 AM.

Description

[RISCV] Improve sysroot computation if no GCC install detected

If a GCC installed is not detected, the driver would default to
the root of the filesystem. This is not ideal when this doesn't
match the install directory of the toolchain and can cause
undesireable behavior such as picking up system libraries or
the system linker when cross-compiling.

Differential Revision: https://reviews.llvm.org/D68391

Details

Committed
edward-jonesNov 7 2019, 7:17 AM
Differential Revision
D68391: [RISCV] Improve sysroot computation if no GCC install detected
Parents
rG2fdd58c5066f: [SDAG] reduce code duplication; NFC
Branches
Unknown
Tags
Unknown