Skip to content

Commit

Permalink
Use correct architecture for app stub variants
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldoussoren committed Jul 10, 2024
1 parent f7c9142 commit e564462
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/py2app/_apptemplate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ def _pyflags() -> List[str]:
+ sysconfig.get_config_var("SYSLIBS").split()
)

# drop '-arch' flags from _pyflags, those will be added later
for idx in range(len(flags) - 1, -1, -1):
if flags[idx] == "-arch":
del flags[idx : idx + 2]

# Remove debug flags, those result in a dSYM directory for the build
# and those aren't useful for us.
while "-g" in flags:
Expand Down Expand Up @@ -84,6 +89,7 @@ def copy_app_launcher(
return

launcher = importlib.resources.files(__name__).joinpath("launcher.m")

subprocess.run(
(
[
Expand Down

0 comments on commit e564462

Please sign in to comment.