diff options
| author | Tony Li <tony.li@automattic.com> | 2024-04-04 19:08:54 +1300 |
|---|---|---|
| committer | Tony Li <tony.li@automattic.com> | 2024-04-04 19:08:54 +1300 |
| commit | 1ffb410aa278f48fb8b571701aeb96ab8b4b1da9 (patch) | |
| tree | c48cb7f62eb134ea87ce86856c5aa4ad4f124953 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | b4acbe4233b97ec51605c513ce6b215470574f80 (diff) | |
| download | rust-1ffb410aa278f48fb8b571701aeb96ab8b4b1da9.tar.gz rust-1ffb410aa278f48fb8b571701aeb96ab8b4b1da9.zip | |
Fix incorrect 'llvm_target' value used on watchOS target
The expected value is "<arch>-apple-watchos<major>.<minor>.0", i.e. "arm64_32-apple-watchos8.0.0". compiler/rustc_target/src/spec/base/apple/mod.rs contains functions that construct such string. There is an existing function `watchos_sim_llvm_target` which returns llvm target value for watchOS simulator. But there is none for watchOS device. This commit adds that missing function to align watchOS with other Apple platform targets.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
