Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Problem with my plugin with multiple configurations

Hi Jan,

In the Indexer preferences, is it set to use the active build configuration?

Marc-Andre

On 14-02-13 05:52 PM, Jan Baeyens wrote:
Hi
I have written a arduino eclipse plugin that runs on CDT. In the plugin there is a dedicated field to extend the command line.
This field is passed onto the command line when the language settings provider is called ( protected String getCompilerCommand(String languageId) in the public class ArduinoLanguageProvider extends ToolchainBuiltinSpecsDetector implements ILanguageSettingsEditableProvider ).

I mostly use this to define global defines with the -D option which is why I had to add it to the getCompilerCommand.
This works well in a single configuration project or as long as I have the same defines for all the configurations.
If I have however 2 configurations with different defines in my personal field the gui does not properly show code in #ifdef statements. (see attached image)

I was wondering. Is this due to the way I'm working or is this to be considered a bug?

Best regards
Jantje


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top