Descriptioncompiler_version.py now tries multiple different command lines. This is needed as clang needs either -no-integrated-as or -fno-integrated-as and gcc supports neither (Mac OS X linker/assembler also needs -v rather than --version).
compiler_version.py now understands CXXFLAGS too. This means that if the linker/assembler used is changed by the environment value it will still be found (Such as when adding -B argument.) This will be helpful for using binutils from third_party.
Also adding unittests for compiler_version.py tool. Checks a bunch of known version strings, more can be added as they are discovered. Could also help extending to Mac OS
X in the future.
BUG=352046
Patch Set 1 #
Messages
Total messages: 9 (0 generated)
|