Skip to content
Discussion options

You must be logged in to vote

I tried adding the -Wa,-x assembler-with-cpp and -Wa,-x ,assembler-with-cpp however in this case meson fails to verify the compiler, do you have any suggestions?

I think I misunderstood what you want... -Wa says "pass this option to the assembler". -x says "in the frontend, interpret this file as $language, in this case assembly, and invoke the assembler".

So you cannot pass -x via -Wa, because the point of -x is to decide whether to use -Wa.

The -x option allows you to override the compiler's automatic detection of the language based on the file extension. It's utterly inappropriate to include in a cross file, because if it is correct to pass that option, it must be defined in meson.bu…

Replies: 3 comments 2 replies

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
2 replies
@eli-schwartz
Comment options

@gitkarokan
Comment options

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