From 111750a33b92d98e7f2893ad5c4b3ec133a54cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Mon, 18 Sep 2023 10:29:11 +0200 Subject: [PATCH] build-aux: use copy2 instead of copyfile --- build-aux/cargo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-aux/cargo.py b/build-aux/cargo.py index cd1f7b8..4ead864 100755 --- a/build-aux/cargo.py +++ b/build-aux/cargo.py @@ -22,11 +22,11 @@ if BUILDTYPE == "release": print("RELEASE MODE") CMD = ['cargo', 'build', '--manifest-path', os.path.join(MESON_SOURCE_ROOT, 'Cargo.toml'), '--release'] subprocess.run(CMD, env=env) - shutil.copyfile(os.path.join(CARGO_TARGET_DIR, "release", APP_BIN), OUTPUT) + shutil.copy2(os.path.join(CARGO_TARGET_DIR, "release", APP_BIN), OUTPUT) else: print("DEBUG MODE") CMD = ['cargo', 'build', '--manifest-path', os.path.join(MESON_SOURCE_ROOT, 'Cargo.toml')] subprocess.run(CMD, env=env) - shutil.copyfile(os.path.join(CARGO_TARGET_DIR, "debug", APP_BIN), OUTPUT) + shutil.copy2(os.path.join(CARGO_TARGET_DIR, "debug", APP_BIN), OUTPUT)