Support using gcc-config to determine the correct GCC toolchain location
on Gentoo. In order to do that, attempt to read gcc-config configuration
form [[sysroot]]/etc/env.d/gcc, if no custom toolchain location is
provided.
Details
Diff Detail
Event Timeline
lib/Driver/ToolChains.cpp | ||
---|---|---|
1446–1463 | This is not parsing the triple but detaching the version appended to it. |
lib/Driver/ToolChains.cpp | ||
---|---|---|
1446–1463 | But still it is better to use some standard infrastructure rather than inventing a new one (with possible bugs, incompatibilities etc.) |
lib/Driver/ToolChains.cpp | ||
---|---|---|
1446–1463 | I still don't understand what you want me to do. llvm::Triple does not support triple + version thingy that is the case here. I don't need to parse the triple, just split the version out of it. |
lib/Driver/ToolChains.cpp | ||
---|---|---|
1446–1463 | Can you use Triple::getEnvironmentVersion()? |
lib/Driver/ToolChains.cpp | ||
---|---|---|
1446–1463 | No. This is not embedded in environment field but used as a separate component following it. Triple class doesn't cover it at all. |
lib/Driver/ToolChains.cpp | ||
---|---|---|
1446–1463 | Ok |
Use range-based for here