How to check if compiler supports -include parameter? #11409
Unanswered
radioactiveman
asked this question in
Q&A
Replies: 2 comments
-
cxx = meson.get_compiler('cpp') I don't think there's an error returned when the argument isn't supported; the arg just won't be added to the build. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Compiler.has_argument or has_multi_argument maybe? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Audacious uses the following approach to include a generated header globally in every source file.
Is it possible to check if the compiler supports the
-include
parameter?Even better would be a portable way to support other compilers as well.
The MSVC counter part for example is
/FI
if I understand their docs correctly.I have tried to use
cc.has_argument('-include')
but with no success.Beta Was this translation helpful? Give feedback.
All reactions