Skip to content

Commit

Permalink
fixup! fixup! Add meson build system support
Browse files Browse the repository at this point in the history
  • Loading branch information
mochaaP committed Sep 19, 2024
1 parent 6a383f5 commit 53d8a5d
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,7 @@ if cc.get_argument_syntax() == 'msvc'
language: 'c',
)
endif
endif

if cc.get_linker_id() == 'ld.wasm'
emflags = ['-sEXPORT_NAME="Zydis"', '-sMODULARIZE=1']
add_project_link_arguments(
emflags,
language: 'c',
)
endif

if nolibc
elif nolibc
add_project_arguments(
'-fno-stack-protector',
language: 'c',
Expand All @@ -100,6 +90,14 @@ if nolibc
)
endif

if cc.get_linker_id() == 'ld.wasm'
emflags = ['-sEXPORT_NAME="Zydis"', '-sMODULARIZE=1']
add_project_link_arguments(
emflags,
language: 'c',
)
endif

zycore_dep = dependency(
'zycore',
version: '>=1.5.0',
Expand Down

0 comments on commit 53d8a5d

Please sign in to comment.