platformio / platformio/platformio-core
Pass build flags to the specific scope
Open
Nobody has claimed this yet.
build system
feature
- Dominant language
- Python
- Stars
- 9.5k
- Forks
- 905
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 2
Description
Allow passing build flags to the specific scope. See https://docs.platformio.org/en/latest/projectconf/section_env_build.html#build-flags
Example,
[env:myenv]
board = ...
build_flags =
; Only for C files
CFLAGS: -Wno-old-style-declaration
; Only for CPP files
CXXFLAGS: -fexceptions
LINKFLAGS: -u __cxa_guard_dummy -u ld_include_panic_highint_hdl
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the build-flags documentation linked in the issue, then trace the existing build-flag handling in platformio-core. The change is complete when CFLAGS, CXXFLAGS, and LINKFLAGS from an environment are passed only to their corresponding build stages, as shown by the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100