From f82bebfe7304d1ba33c9dcf1a809ccc375d10962 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sat, 7 Sep 2024 23:14:24 -0500 Subject: [PATCH] use cp -a when bundling --- SConstruct | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index f4a25c45..15507266 100644 --- a/SConstruct +++ b/SConstruct @@ -186,7 +186,11 @@ if platform == "darwin": if path.exists(dest_path): break print(f'copying from {src_path}') - Execute(Copy(dest_path, src_path)) + # Copying .frameworks needs to preserve symlinks by using cp -a + if subprocess.call(['cp', '-a', src_path, dest_path]) != 0: + print('cp -a failed') + Exit(1) + # Recursively bundle the dependencies of each dependency: bundle_libraries_for(target, [File(check_path)], env) break elif platform == "win32":