Repository navigation
revert(lpc): drop -std=gnu++17 overrides; PIO defaults now compile - #3331
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughIn Changesns_to_cycles Literal Fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…3329) PR #3332 force-set `-std=gnu++17` on all 5 LPC PIO envs to work around the C++14 digit separators that lived in m0clockless_c.h. That same PR also dropped those digit separators (and added BareDigitSeparatorChecker to prevent regression), so the flag override is no longer carrying its weight — PIO's default `-std=gnu++11` is now sufficient for the LPC framework. Reverting the `build_unflags` + `-std=gnu++17` block from: - env:lpc845brk (functional `-DRELEASE`/`-DFASTLED_LPC_PWM_DMA=1`/ `-DFASTLED_AUTORESEARCH_LOW_MEMORY=1` flags preserved) - env:lpc845 - env:lpc804 - env:lpcxpresso845max - env:lpcxpresso804 `env:lpc845brk_ieee754` extends `env:lpc845brk` and tracks automatically. Rationale (per maintainer): > we should be able to keep the defaults again now that the fastled > c++17 / 14 fix landed, it should compile with C++11 This restores parity with the platform's documented default standard and shrinks the surface that the `zackees/platform-nxplpc-arduino` maintainer has to consider when revisiting the platform.json default (open question Part B from #3329 — now moot for FastLED-side builds). Verification: - bash compile lpc845brk --examples AutoResearch --platformio -> SUCCESS in 49s; Flash 59996/65536 (91.5%), RAM 5924/16384 (36.2%). - bash compile lpc845brk --examples AutoResearch (fbuild backend) -> SUCCESS in 41s; Flash 55140 bytes, RAM 9248 bytes. No regression. Closes the second-order cleanup tracked under #3329. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
bf2dfba to
6b17fb8
Compare
Summary
PR #3332 added
build_unflags = -std=gnu++11 -std=c++11+build_flags = -std=gnu++17to 5 LPC PIO envs as a workaround for the C++14 digit separators inm0clockless_c.h. That same PR also dropped those digit separators and addedBareDigitSeparatorCheckerto prevent regression, which means PIO's default-std=gnu++11now compiles the LPC framework cleanly.This PR removes the now-redundant
gnu++17overrides from:env:lpc845brk(functional-DRELEASE/-DFASTLED_LPC_PWM_DMA=1/-DFASTLED_AUTORESEARCH_LOW_MEMORY=1flags preserved)env:lpc845env:lpc804env:lpcxpresso845maxenv:lpcxpresso804env:lpc845brk_ieee754extendsenv:lpc845brkand tracks automatically.Per maintainer:
This also moots the "Part B" open question on #3329 about whether the gnu++17 default should live in
zackees/platform-nxplpc-arduino'splatform.json— the FastLED-side fix means neither side needs the override for our builds, leaving the platform-side decision purely to that maintainer's preference.Verification
-std=gnu++11(default)gnu++17(config)Commands run:
Test plan
bash test --cppRefs #3329, #3332.
🤖 Generated with Claude Code