Skip to content

Add FreeBSD platform support#206

Open
elliejs wants to merge 2 commits into
CadQuery:masterfrom
elliejs:freebsd-minimal
Open

Add FreeBSD platform support#206
elliejs wants to merge 2 commits into
CadQuery:masterfrom
elliejs:freebsd-minimal

Conversation

@elliejs

@elliejs elliejs commented Jul 17, 2026

Copy link
Copy Markdown

Summary

  • Add FreeBSD platform detection in CMakeLists.txt (treated same as Linux for include paths)
  • Add [FreeBSD] section to ocp.toml with Xw module and symbol file
  • Add lief <0.14 API support in dump_symbols.py, distinguish FreeBSD ELF from Linux. Also fix a latent bug where p.format was accessed before the None check on lief.parse
  • Enable VTK OPTIONAL_COMPONENTS mpi in templates/CMakeLists.j2 (required when VTK is built with MPI, closes fix CMake not finding MPI #179)
  • Point pywrap submodule to OCP79 branch (includes -idirafter fix from Use -idirafter for system includes pywrap#64)

Tested

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Comment thread templates/CMakeLists.j2 Outdated
elliejs and others added 2 commits July 17, 2026 18:52
- ocp.toml: add [FreeBSD] section with Xw module and symbol file
- CMakeLists.txt: detect FreeBSD as a build platform, treat its
  include paths the same as Linux
- dump_symbols.py: distinguish FreeBSD from Linux ELF binaries,
  add lief <0.14 API support. Also fix a latent bug where
  p.format was accessed before the None check, which would crash
  if lief.parse failed. Harden parsing with early validation.
- templates/CMakeLists.j2: add VTK OPTIONAL_COMPONENTS mpi
  (required when VTK is built with MPI support)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Required for FreeBSD support: tracks CadQuery/pywrap@b7e5acb which
includes the -idirafter fix for system include paths, preventing
breakage when libclang and system clang versions differ.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants