[Qt-creator] How to get paths of C and C++ compiler from ProjectExplorer::ToolChain?

Konstantin Tokarev annulen at yandex.ru
Wed Jan 11 11:19:12 CET 2012



11.01.2012, 14:03, tobias.hunger at nokia.com:
> Hi Konstantin!
>
> It is always nice to have more buildsystems supported:-)
>
> Would a interface like this suffice for your needs:
>
> Utils::FileName cCompilerCommand() const;
> Utils::FileName cxxCompilerCommand() const;
>
> ?
>
> Those could return e.g. "cl" (MSVC) or "gcc" (auto-detected gcc) or
> "/home/code/installed/custom-gcc/bin/gcc" (custom installed gcc). You might need to examine the
> PATH as set up by addToEnvironment(...) to find the real executable locations.

Looks OK. Hope it will work fine with MinGW on Windows :)

-- 
Regards,
Konstantin



More information about the Qt-creator mailing list