Skip to content

integer arguments in build_flags are missing #795

@Palatis

Description

@Palatis

I'm starting a new platform, and am trying to write my board.json.

I observed that arguments starts with [0-9]+ are missing in pio action command line.
for example,

{
  "build": [
    "extra_flags": "-DN79E85X -DN79E855 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E85X --iram-size 256 --xram-size 256 --code-size 16384 --stack-size 128",
    ...
  ],
  ...
}

and pio run -v outputs something like:

sdcc -o .pioenvs/mcs51/src/ADC.rel -c --std-sdcc11 --opt-code-size --peep-asm --peep-return -mmcs51 --iram-size --xram-size --code-size --stack-size -DF_CPU=22118400L -DPLATFORMIO=030100 -DN79E85X -DN79E855 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E85X -I/home/palatis/.platformio/packages/framework-nakedmcs51/cores/naked -I/home/palatis/.platformio/packages/framework-nakedmcs51/variants/n79e85x -Isrc src/ADC.c

all the integer values from build.extra_flags are gone into the void.

and this doesn't work for platformio.ini either:

[env:myboard]
build_flags = --iram-size 256 --xram-size 256 --code-size 16384 --stack-size 128

same output from pio run -v

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions