Skip to content
Snippets Groups Projects
Commit 98eef3ec authored by Nirbheek Chauhan's avatar Nirbheek Chauhan :ant:
Browse files

meson: Fix some MSVC assembly feature checks

These should really be configure checks, but they require inspecting
the compiled output, which we can't with meson.
parent e3616c32
No related branches found
No related tags found
No related merge requests found
......@@ -92,17 +92,15 @@ else
endif
# Exception handling frame
if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
# FIXME: Actually check for this instead of hard-coding it
# Also, check if this is actually correct
if host_cpu_family == 'x86_64'
message('.eh_frame is hard-coded to not be ro')
ffi_conf.set('EH_FRAME_FLAGS', '"aw"')
else
message('.eh_frame is hard-coded to ro')
ffi_conf.set('HAVE_RO_EH_FRAME', 1)
ffi_conf.set('EH_FRAME_FLAGS', '"a"')
endif
# FIXME: Actually check for this instead of hard-coding it
# Also, check if this is actually correct
if host_cpu_family == 'x86_64'
message('.eh_frame is hard-coded to not be ro')
ffi_conf.set('EH_FRAME_FLAGS', '"aw"')
else
message('.eh_frame is hard-coded to ro')
ffi_conf.set('HAVE_RO_EH_FRAME', 1)
ffi_conf.set('EH_FRAME_FLAGS', '"a"')
endif
if ['arm', 'aarch64'].contains(host_cpu_family) and host_system == 'darwin'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment