Skip to content
Discussion options

You must be logged in to vote

Is this still unsolved? (That is instructing Meson to use CXX for *.c)?
My use-case is very different from the original question: what I want to do is compile liblua as C++, which allows using C++ features in it, such as using Exceptions instead of longjmp.

c_args: ['-x', 'c++'] works as a work-around, but this really is a hack because this requires you to define the C compiler as something that understands C++. It's also somewhat confusing that you have to define both 'c' and 'c++' for the project and add_project_arguments() to both languages.

Replies: 6 comments 10 replies

Comment options

You must be logged in to vote
5 replies
@cprieto
Comment options

@eli-schwartz
Comment options

@cprieto
Comment options

@eli-schwartz
Comment options

@cprieto
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cprieto
Comment options

You must be logged in to vote
4 replies
@black-sliver
Comment options

@black-sliver
Comment options

@bonzini
Comment options

@black-sliver
Comment options

Comment options

You must be logged in to vote
1 reply
@black-sliver
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants