Details
Diff Detail
- Build Status
Buildable 12705 Build 12705: arc lint + arc unit
Event Timeline
Sysroot is a useful feature on other platforms. What is the reason for removing it, rather than implementing it :-)?
I'm not removing --sysroot from the toolchain (i.e. clang and the driver), only from lld. In lld only the ELF driver supports sysroot and the only thing is provides is that ability for the user to pass special -L flag with = at the start. i.e. -L=/path/in/sysroot. Do you think this is useful feature? Normally the sysroot library paths are constructed by clang based on the --sysroot you pass to it, and are fully expanded by the time the linker sees them.
It allows one to write:
lld --sysroot=/foo -L=/usr/lib -L=/usr/local/lib
as shorthand for:
lld -L/foo/usr/lib -L/foo/usr/local/lib
(although in this case is actually shorter to write the latter).
I've need seen this used in practice and its not used by the clang driver.
I would argue that we can always add this feature if the future, but implementing now seems unnecessary.