Skip to content

Commit e286e4d

Browse files
committed
ENH: define strip binary in synthesized cross files
1 parent bd9a069 commit e286e4d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mesonpy/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,8 @@ def __init__(
711711
cpp = ['c++', '-arch', {arch!r}]
712712
objc = ['cc', '-arch', {arch!r}]
713713
objcpp = ['c++', '-arch', {arch!r}]
714+
strip = ['strip', '-arch', {arch!r}]
715+
714716
[host_machine]
715717
system = 'darwin'
716718
cpu = {arch!r}
@@ -731,11 +733,12 @@ def __init__(
731733

732734
cross_file_data = textwrap.dedent(f'''
733735
[binaries]
736+
ar = '{arch}-apple-{subsystem}-ar'
734737
c = '{arch}-apple-{subsystem}-clang'
735738
cpp = '{arch}-apple-{subsystem}-clang++'
736739
objc = '{arch}-apple-{subsystem}-clang'
737740
objcpp = '{arch}-apple-{subsystem}-clang++'
738-
ar = '{arch}-apple-{subsystem}-ar'
741+
strip = ['strip', '-arch', {arch!r}]
739742
740743
[host_machine]
741744
system = 'ios'

0 commit comments

Comments
 (0)