aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2023-02-16 12:14:21 -0500
committerXavier Claessens <xclaesse@gmail.com>2023-02-20 09:58:34 -0500
commit744e6ebe1d5f214fd54727abde0726160218a1f0 (patch)
treeb7752fb5c238d28a617cf6b861437f66f260ad64 /test cases
parent2fd39dc2b08a0d60471e13a2ed3216486be738cf (diff)
downloadmeson-744e6ebe1d5f214fd54727abde0726160218a1f0.zip
meson-744e6ebe1d5f214fd54727abde0726160218a1f0.tar.gz
meson-744e6ebe1d5f214fd54727abde0726160218a1f0.tar.bz2
nasm: Link with windows CRT libs when nasm is used as linker language
Diffstat (limited to 'test cases')
-rw-r--r--test cases/nasm/2 asm language/meson.build8
-rw-r--r--test cases/nasm/3 nasm only/dummy.asm4
-rw-r--r--test cases/nasm/3 nasm only/dummy.def2
-rw-r--r--test cases/nasm/3 nasm only/meson.build17
4 files changed, 31 insertions, 0 deletions
diff --git a/test cases/nasm/2 asm language/meson.build b/test cases/nasm/2 asm language/meson.build
index 390ffed..0eecd99 100644
--- a/test cases/nasm/2 asm language/meson.build
+++ b/test cases/nasm/2 asm language/meson.build
@@ -5,6 +5,14 @@ if not host_machine.cpu_family().startswith('x86')
error('MESON_SKIP_TEST: nasm only supported for x86 and x86_64')
endif
+if host_machine.system() == 'windows'
+ error('MESON_SKIP_TEST: this test asm is not made for Windows')
+endif
+
+if meson.backend().startswith('vs')
+ error('MESON_SKIP_TEST: VS backend does not recognise NASM yet')
+endif
+
if not add_languages('nasm', required: false)
nasm = find_program('nasm', 'yasm', required: false)
assert(not nasm.found())
diff --git a/test cases/nasm/3 nasm only/dummy.asm b/test cases/nasm/3 nasm only/dummy.asm
new file mode 100644
index 0000000..92c86b0
--- /dev/null
+++ b/test cases/nasm/3 nasm only/dummy.asm
@@ -0,0 +1,4 @@
+global dummy
+section .rdata align=16
+dummy:
+ dd 0x00010203
diff --git a/test cases/nasm/3 nasm only/dummy.def b/test cases/nasm/3 nasm only/dummy.def
new file mode 100644
index 0000000..8f8eb99
--- /dev/null
+++ b/test cases/nasm/3 nasm only/dummy.def
@@ -0,0 +1,2 @@
+EXPORTS
+ dummy
diff --git a/test cases/nasm/3 nasm only/meson.build b/test cases/nasm/3 nasm only/meson.build
new file mode 100644
index 0000000..9777291
--- /dev/null
+++ b/test cases/nasm/3 nasm only/meson.build
@@ -0,0 +1,17 @@
+project('nasm only')
+
+if not add_languages('nasm', required: false)
+ error('MESON_SKIP_TEST: nasm not found')
+endif
+
+if meson.backend().startswith('vs')
+ error('MESON_SKIP_TEST: VS backend does not recognise NASM yet')
+endif
+
+sources = files('dummy.asm')
+
+dummy = library(
+ 'dummy',
+ sources,
+ vs_module_defs: 'dummy.def',
+)