Skip to content

using multiple linking flags when overriding a build property #532

Open
@artynet

Description

@artynet

As described in the object I'd like to override the build properties of my custom boards.txt file leveraging all the benefits of the FreeRTOS samd21 library. For this reason, I have defined an empty build variable :

build.freertos.memory_wrapping_flags=

which is called at runtime with :

arduino-cli compile --fqbn <myboard> --build-properties build.freertos.memory_wrapping_flags="-Wl,--wrap=malloc -Wl,--wrap=free -Wl,--wrap=calloc -Wl,--wrap=realloc" mysketch.ino -vv

but just -Wl is set as its value so all which is located after the first comma is removed, altough enclosed within double quotes. I can see that because if I launch the command with the --show-properties option the output is just :

memory_wrapping_flags=-Wl

any hints about that ?

Environment

  • CLI version (output of arduino-cli version): 0.7.0 Commit: 3809fc3
  • OS and platform: Linux x64

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions