Open phillipjohnston opened 4 years ago
I also tried manually adding the -isystem
compiler flag (via cpp_args
on the library target), and it does not appear. It does appear if I use -I
and -idirafter
when specifying the flag.
Just wanted to follow up on this: is there any way to disable the include directory filtering?
I just ran into the same issue. Specifying --nostdinc -isystem /path/to/some/dir -isystem /usr/include
results in gcc being executed with --nostdinc -isystem /path/to/som/dir
. That means header files in /usr/include
are no longer being picked up.
Describe the bug
I maintain a libc and libcpp for use with microcontroller-based embedded projects. I compile with -nostdinc/-nostdinc++ to prevent picking up the compiler's builtin library. For supporting testing/simulation on a PC, I want to manually re-add some system includes as needed while ensuring proper ordering.
When I try this:
Meson does not add the include argument to the build. If I remove
is_system: true
, the include argument is added.To Reproduce
Using OS X with Apple Clang, you can build the
pj/debug
branch of our libcpp project: https://github.com/embeddedartistry/libcpp/tree/pj/debugExpected behavior
Meson adds the include directory.
system parameters