Skip to content

Commit

Permalink
Provide a minimum OS version (11) for ARM/macOS
Browse files Browse the repository at this point in the history
This gives LLVM enough information to generate a
"platform load-command" in the MachO object file.

Fixes #7941
  • Loading branch information
alexreinking committed Jun 25, 2024
1 parent 8c836b3 commit 09de11e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LLVM_Runtime_Linker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ llvm::Triple get_triple_for_target(const Target &target) {
triple.setOS(llvm::Triple::Fuchsia);
} else if (target.os == Target::OSX) {
triple.setVendor(llvm::Triple::Apple);
triple.setOS(llvm::Triple::MacOSX);
triple.setOSName("macos11");
triple.setArchName("arm64");
} else if (target.os == Target::NoOS) {
// For bare-metal environments
Expand Down

0 comments on commit 09de11e

Please sign in to comment.