From 06b7306173500fcaa42afe79f8961a40a5142160 Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Sat, 11 Feb 2023 13:23:32 +0100 Subject: [PATCH] Fix missing triplet and architecture --- Tools/build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/build.py b/Tools/build.py index 5d5b19f2..8e2f31b2 100755 --- a/Tools/build.py +++ b/Tools/build.py @@ -108,8 +108,12 @@ def execute( # Swap the architecture for the second build if build_config.build_architecture == "arm64": build_config.build_architecture = "x64" + build_config.cmake_target_triplet = "x64-osx" + build_config.cmake_osx_architectures = "-DCMAKE_OSX_ARCHITECTURES=x86_64" else: build_config.build_architecture = "arm64" + build_config.cmake_target_triplet = "arm64-osx" + build_config.cmake_osx_architectures = "-DCMAKE_OSX_ARCHITECTURES=arm64" # Make sure the script is always started from the same folder build_config.root_path = cd_repo_root_path()