Skip to content

Using -D cppflags possible? #159

@Pantastisch

Description

@Pantastisch

Hello all,

great tool firstly!
Is there a way to use or config new cppflags like -DTESTDEFINE for example?

I would like to enable those macros from CLI for a variant handling.

Example:

// Get right parameter based on variant
#if defined(TESTDEFINE)
par = TEST_PAR;
#else 
par = DEFAULT_PAR;
#endif

Hope someone can assist me.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @per1234@Pantastisch

        Issue actions

          Using -D cppflags possible? · Issue #159 · arduino/arduino-cli