Skip to content

Commit

Permalink
try supplying arch flag
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinMeimar committed Oct 10, 2024
1 parent 5574b2a commit 537e500
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/scripts/test-scripts/compile_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 537e500

Please sign in to comment.