From 537e500b11ddaf184349f82c7abeaad04a8cba67 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 10 Oct 2024 13:02:13 -0600 Subject: [PATCH] try supplying arch flag --- tests/scripts/test-scripts/compile_lib.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/scripts/test-scripts/compile_lib.py b/tests/scripts/test-scripts/compile_lib.py index 020789a..abd0da2 100644 --- a/tests/scripts/test-scripts/compile_lib.py +++ b/tests/scripts/test-scripts/compile_lib.py @@ -6,6 +6,12 @@ def compile_shared_library(compiler, input_file, output_file, is_macos): flags = ["-fPIC"] if is_macos: + flags.extend([ + "-dynamiclib", + "-arch", "arm64e", + "-install_name", "@rpath/" + os.path.basename(output_file), + "-mmacosx-version-min=11.0" + ]) flags.extend(["-dynamiclib"]) else: flags.extend(["-shared"])