You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in pixman we want to do some assembler tests, and the input is raw assembly with c pre-processor macros. This can be made to work by writing the test to a .S file and then passing it in, but cannot be made to work (currently) using a string passed to compiler.compiles.
One way to go about doing this would be to add a assembly flag to the compiler object, but I'm not sure if that's the right way to solve it, since that relies on specific behavior of GCC/Clang, and notably doesn't work with MSVC. A better way might be do do something similar for assemblers to what I'm doing in #5148, splitting the assembler into a separate representation and allowing the user to ask for the assembler like another compiler, doing something like:
as =meson.get_compiler('assembler')
works = as.compiles(
'''my . made:up assembly . code """)
in pixman we want to do some assembler tests, and the input is raw assembly with c pre-processor macros. This can be made to work by writing the test to a .S file and then passing it in, but cannot be made to work (currently) using a string passed to
compiler.compiles
.One way to go about doing this would be to add a
assembly
flag to the compiler object, but I'm not sure if that's the right way to solve it, since that relies on specific behavior of GCC/Clang, and notably doesn't work with MSVC. A better way might be do do something similar for assemblers to what I'm doing in #5148, splitting the assembler into a separate representation and allowing the user to ask for the assembler like another compiler, doing something like:related: #4366
The text was updated successfully, but these errors were encountered: