about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-08-22 20:52:52 +0200
committerGitHub <noreply@github.com>2021-08-22 20:52:52 +0200
commitc6da5b08e0177d0b9053cd7dd6be422ee047d671 (patch)
treece8165d46e1860d5bfdf50cbda0dec5f804de27c /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent3b1e7b1fc9853497140f7f5371882234f0295893 (diff)
parent13e2f807a19398e735ca3addab19366cda133a31 (diff)
downloadrust-c6da5b08e0177d0b9053cd7dd6be422ee047d671.tar.gz
rust-c6da5b08e0177d0b9053cd7dd6be422ee047d671.zip
Rollup merge of #88077 - kit-981:feature/fix-minimum-os-version-in-header, r=petrochenkov
Generate an iOS LLVM target with a specific version

This commit adds the `LC_VERSION_MIN_IPHONEOS` load command to the Mach-O header generated for `aarch64-apple-ios` binaries. The operating system will look for this load command to determine the minimum supported operating system version and will not allow the binary to run if it's absent. This logic already exists for the simulator toolchain.

I've been using `otool` from a [cctools](https://github.com/tpoechtrager/cctools-port) toolchain to parse the header and validate that this change adds the required load command.

This change appears to be enough to build Rust binaries that can run on a jailbroken iPhone.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions