From 6310352d4188c30e307743caee83fabed567b63b Mon Sep 17 00:00:00 2001 From: MichelJuillard <michel.juillard@mjui.fr> Date: Fri, 29 Sep 2023 18:34:11 +0200 Subject: [PATCH] replace meson copyfile --- src/meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/meson.build b/src/meson.build index 4dd87161..4b827692 100644 --- a/src/meson.build +++ b/src/meson.build @@ -13,8 +13,13 @@ flex_src = flex_gen.process('macro/Tokenizer.ll', 'DynareFlex.ll') # flex is typically provided by the system of the build machine) if not cpp_compiler.has_header('FlexLexer.h') message('FlexLexer.h cannot be found by the compiler, it will be manually copied to the build directory') + copy = find_program('copy.py') fs = import('fs') - flexlexer_h = fs.copyfile(fs.parent(fs.parent(flex_exe.full_path())) / 'include' / 'FlexLexer.h', 'FlexLexer.h') + run_command( + copy, + fs.parent(fs.parent(flex_exe.full_path())) / 'include' / 'FlexLexer.h', + 'FlexLexer.h' + ) else flexlexer_h = [] endif -- GitLab