From 2db807b22be66d46c6be15a3345d7c0dafa41ec8 Mon Sep 17 00:00:00 2001 From: AlvaroHG Date: Mon, 3 Jun 2024 14:45:37 -0700 Subject: [PATCH] Removes mac build flag for Linux build --- tasks.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tasks.py b/tasks.py index dbf088a616..81f44a5153 100644 --- a/tasks.py +++ b/tasks.py @@ -963,9 +963,14 @@ def link_build_cache(root_dir, arch, branch): os.makedirs(os.path.dirname(branch_cache_dir), exist_ok=True) # -c uses MacOS clonefile - subprocess.check_call( - "cp -a -c %s %s" % (main_cache_dir, branch_cache_dir), shell=True - ) + if sys.platform.startswith("darwin"): + subprocess.check_call( + "cp -a -c %s %s" % (main_cache_dir, branch_cache_dir), shell=True + ) + else: + subprocess.check_call( + "cp -a -c %s %s" % (main_cache_dir, branch_cache_dir), shell=True + ) logger.info("copying main cache complete for %s" % encoded_branch) branch_library_cache_dir = os.path.join(branch_cache_dir, "Library")