From 0329cc337b6fe1cb728262a6bdd4ac402f11311f Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Sat, 14 Jun 2025 18:42:35 +0200 Subject: [PATCH] ENH: define strip binary in synthesized cross files --- mesonpy/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mesonpy/__init__.py b/mesonpy/__init__.py index a247998b..d4dd3bd0 100644 --- a/mesonpy/__init__.py +++ b/mesonpy/__init__.py @@ -711,6 +711,8 @@ def __init__( cpp = ['c++', '-arch', {arch!r}] objc = ['cc', '-arch', {arch!r}] objcpp = ['c++', '-arch', {arch!r}] + strip = ['strip', '-arch', {arch!r}] + [host_machine] system = 'darwin' cpu = {arch!r} @@ -731,11 +733,12 @@ def __init__( cross_file_data = textwrap.dedent(f''' [binaries] + ar = '{arch}-apple-{subsystem}-ar' c = '{arch}-apple-{subsystem}-clang' cpp = '{arch}-apple-{subsystem}-clang++' objc = '{arch}-apple-{subsystem}-clang' objcpp = '{arch}-apple-{subsystem}-clang++' - ar = '{arch}-apple-{subsystem}-ar' + strip = '{arch}-apple-{subsystem}-strip' [host_machine] system = 'ios'