Conversation
Port Einstein to FreeBSD While there, handle NetBSD Don't break existing Linux and OpenBSD
📝 WalkthroughWalkthroughThe PR broadens BSD platform detection in CMake build files from OpenBSD-specific to a generic ".*BSD$" pattern, affecting library discovery, include paths, and linking across multiple targets. Additionally, compiler warning options are adjusted for GNU compilers on BSD/Linux builds, and clang-format discovery is expanded to include clang-format19. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
CMakeLists.txt (1)
693-693: Consider adding a broader clang-format search.Adding
clang-format19is good, but the naming convention varies across systems. FreeBSD ports typically install asclang-format<version>without a hyphen (e.g.,clang-format19), while some systems useclang-format-19.Optional: Expand search names for broader compatibility
find_program(CLANG_FORMAT_EXECUTABLE - NAMES clang-format-14 clang-format-mp-14 clang-format19 clang-format + NAMES clang-format-14 clang-format-mp-14 clang-format19 clang-format-19 clang-format HINTS /usr/local/opt/clang-format@14/bin/ /usr/lib/llvm-14/bin/ DOC "clang-format executable")🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@CMakeLists.txt` at line 693, Update the NAMES list used when locating clang-format in CMakeLists.txt to include additional common variants so the find command matches both hyphenated and non-hyphenated installs; specifically add names like clang-format-19, clang-format-14, clang-format-15, clang-format-16 (and their non-hyphenated counterparts) alongside the existing clang-format and clang-format19 entries in the NAMES list so the finder used in this CMakeLists.txt will locate clang-format across more platforms.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@CMakeLists.txt`:
- Line 693: Update the NAMES list used when locating clang-format in
CMakeLists.txt to include additional common variants so the find command matches
both hyphenated and non-hyphenated installs; specifically add names like
clang-format-19, clang-format-14, clang-format-15, clang-format-16 (and their
non-hyphenated counterparts) alongside the existing clang-format and
clang-format19 entries in the NAMES list so the finder used in this
CMakeLists.txt will locate clang-format across more platforms.
ℹ️ Review info
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
CMakeLists.txtEmulator/NativeCalls/CMakeLists.txtEmulator/Serial/CMakeLists.txtEmulator/Sound/CMakeLists.txt
|
Looking at the "nitpick" comment from coderabbit, I realize that the addition of |
Port Einstein to FreeBSD
While there, handle NetBSD
Don't break existing Linux and OpenBSD
Summary by CodeRabbit