Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Creating a ScannerConfigurationDiscoveryProfile for gcc type cross compiler based on Cygwin

Hi folks,

it all started with me creating a new project type for a gcc type cross
compiler on Cygwin. The compiler has the path
/aud/aud_dev/windows_tools/bin/i586-aud-gcc (i.e. a Cygwin-absolute
path)

First thing I observed that the includes path entry container still
lists the built-in paths of the default gcc. After a while I figured out
that I must define my own ScannerConfigurationDiscoveryProfile for my
toolchain.

Copied the GCCWinManagedMakePerProjectProfile to my plug-in with all the
elements below and just changed the name and the compiler command in the
run element.

Now the GCCSpecsRunSIProvider gets called alright with
/aud/aud_dev/windows_tools/bin/i586-aud-gcc as the compile command, but
this does not work it invokes the CommandLauncher's execute() method.
The compile command's path is there changed into an OS string without
taking into account that the absolut-looking
/aud/aud_dev/windows_tools/bin/i586-aud-gcc is actually relative to
Cygwin's root directory. Which could vary from one machine to another.
Consequently the compiler is not found and the discovery fails.

What do I do now? I think that the GCCWinManagedMakePerProjectProfile
(and clones like mine) is made for the Cygwin environment and should
therefore be able to handle Cygwin paths. So I think this is probably a
bug.

How do we fix this? Is there already a place somewhere in the CDT from
which the Cygwin root could be queried? Any other ideas from anybody on
getting a fix on this?

Thanks a lot


Norbert Ploett



Back to the top