Skip to content

Use -idirafter for system includes#64

Merged
adam-urbanczyk merged 1 commit into
CadQuery:OCP79from
elliejs:freebsd-minimal
Jul 16, 2026
Merged

Use -idirafter for system includes#64
adam-urbanczyk merged 1 commit into
CadQuery:OCP79from
elliejs:freebsd-minimal

Conversation

@elliejs

@elliejs elliejs commented Jul 16, 2026

Copy link
Copy Markdown

Summary

  • Changes get_includes() paths from -I to -idirafter in translation_unit.py
  • Prevents include-path conflicts when libclang version differs from the system compiler (e.g. FreeBSD with clang-19 system headers and libclang-21), where -I breaks #include_next chains
  • Safe no-op on platforms where versions already match

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

Change get_includes() paths from -I to -idirafter so they are
searched after all system headers. This prevents include-path
conflicts when the libclang version differs from the system
compiler (e.g. FreeBSD with clang-19 system headers and
libclang-21), where -I would break #include_next chains.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@adam-urbanczyk
adam-urbanczyk merged commit b7e5acb into CadQuery:OCP79 Jul 16, 2026
1 check passed
@elliejs
elliejs deleted the freebsd-minimal branch July 16, 2026 19:11
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