Skip to content

Commit

Permalink
ENH: add objc and objcpp to the $ARCHFLAGS generated cross file
Browse files Browse the repository at this point in the history
Allows $ARCHFLAGS enabled cross compilation of objc and objcpp.

Fixes #468.
  • Loading branch information
dnicolodi authored and rgommers committed Sep 5, 2023
1 parent bf3d0f7 commit 8842ba3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mesonpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,8 @@ def __init__( # noqa: C901
[binaries]
c = ['cc', '-arch', {arch!r}]
cpp = ['c++', '-arch', {arch!r}]
objc = ['cc', '-arch', {arch!r}]
objcpp = ['c++', '-arch', {arch!r}]
[host_machine]
system = 'darwin'
cpu = {arch!r}
Expand Down

0 comments on commit 8842ba3

Please sign in to comment.