Skip to content

Commit 6a9eef6

Browse files
authored
build: split tricore and riscv build condition Meson
1 parent 4c3230c commit 6a9eef6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

librz/arch/meson.build

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,22 @@ if capstone_dep.version() == 'next' or capstone_dep.version().split('.')[0].to_i
319319
# plugins
320320
arch_plugins_list += [
321321
'riscv_cs',
322-
'tricore_cs',
323322
]
324323

325324
# plugins sources
326325
arch_plugin_sources += [
327326
'p/arch_riscv_cs.c',
327+
]
328+
endif
329+
330+
if capstone_dep.version() == 'next' or capstone_dep.version().split('.')[0].to_int() > 4
331+
# plugins
332+
arch_plugins_list += [
333+
'tricore_cs',
334+
]
335+
336+
# plugins sources
337+
arch_plugin_sources += [
328338
'p/arch_tricore_cs.c',
329339
]
330340

0 commit comments

Comments
 (0)