mirror of https://github.com/odrling/Aegisub
meson: set correct flags when compiling LuaJIT on Windows
This commit is contained in:
parent
da53b2e814
commit
c06b2df750
|
@ -11,6 +11,13 @@ endif
|
|||
dynasm_dasc = files('../vm_@0@.dasc'.format(dynasm_arch))
|
||||
dasm = [minilua, files('../../dynasm/dynasm.lua')]
|
||||
|
||||
if cc.get_id() == 'msvc'
|
||||
# the cl.exe preprocessor seemingly removes/expands macros, so hardcode flags
|
||||
dasm += ['-D', 'WIN', '-D', 'JIT', '-D', 'FFI']
|
||||
if host_machine.cpu_family() == 'x86_64'
|
||||
dasm += ['-D', 'P64']
|
||||
endif
|
||||
else
|
||||
# BUG: meson does not resolve paths correctly for subprojects
|
||||
hpre = '#include "@0@/../lj_arch.h"'.format(meson.current_source_dir())
|
||||
|
||||
|
@ -30,6 +37,7 @@ foreach def: checkdefs
|
|||
dasm += def[2]
|
||||
endif
|
||||
endforeach
|
||||
endif
|
||||
|
||||
buildvm_src = files(
|
||||
'buildvm.c',
|
||||
|
|
Loading…
Reference in New Issue