[codex] Fix nxplpc Arduino core builds#769
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughUpdates NXP LPC8xx toolchain flags in ChangesNXP LPC toolchain flag alignment
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
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)
⚔️ Resolve merge conflicts
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 |
# Conflicts: # tests/platform/lpc845_build_flags/src/main.ino
Summary
Fixes the nxplpc Arduino core build regression by aligning fbuild's LPC8xx build settings with the ArduinoCore-LPC8xx
platform.txtrecipe and correcting.inopreprocessing behavior.Root Cause
fbuild's nxplpc config had drifted from the LPC Arduino core recipe: it used GNU++17, release LTO,
-nostartfiles,-lc_nano, and extra ARM flags that PlatformIO/ArduinoCore-LPC8xx do not use. The.inopreprocessing path also generatedsetup()/loop()prototypes beforeArduino.h, conflicting with LPCArduino.h'sextern "C"declarations, and stripped explicit user forward declarations from the sketch body.Changes
setup()andloop()..inopreprocessing.Arduino.hand use the correct linkage for the build-flags regression helper.~/dev/ArduinoCore-LPC8xxin-process and checks the generated compile command shape.Validation
soldr cargo fmt --checksoldr cargo test -p fbuild-build source_scanner --libsoldr cargo test -p fbuild-build nxplpc --libsoldr cargo test -p fbuild-build --test nxplpc_build_flags -- --ignoredsoldr cargo test -p fbuild-build --test nxplpc_core_compile_commands -- --ignoredSummary by CodeRabbit
Configuration
Tests