Skip to content

macho: handle -final_output arg #167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 25, 2024
Merged

macho: handle -final_output arg #167

merged 1 commit into from
Dec 25, 2024

Conversation

kubkon
Copy link
Owner

@kubkon kubkon commented Dec 25, 2024

According to lld, when clang is invoked with two -arch flags, it will:

  1. call the linker driver twice, once for each arch
  2. call lipo tool to merge two outputs into a single file emit.sub_path is the name of the temporary file the linker writes to. final_output is the name of the file lipo writes to after the link.

@kubkon kubkon merged commit a6fcf0b into main Dec 25, 2024
12 checks passed
@kubkon kubkon deleted the macho-final-output branch December 25, 2024 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant