Skip to content

Conversation

@Latte72R
Copy link
Owner

System Include Path Detection Modernization

  • Replaces hardcoded platform-specific include paths in main.c with a new function, add_include_paths_from_compiler, which dynamically queries the system C compiler (cc -E -v -xc -) to detect include paths at runtime. This approach improves portability and robustness across different environments.
  • Adds several utility functions to support this new logic, such as fd_readline, lstrip_whitespace, and rstrip_whitespace, for processing compiler output.

close #76

@Latte72R Latte72R merged commit c041998 into main Dec 19, 2025
1 check passed
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.

gccとllvmのinclude pathを識別できるようにする

2 participants