summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorTony Li <tony.li@automattic.com>2024-04-04 19:08:54 +1300
committerTony Li <tony.li@automattic.com>2024-04-04 19:08:54 +1300
commit1ffb410aa278f48fb8b571701aeb96ab8b4b1da9 (patch)
treec48cb7f62eb134ea87ce86856c5aa4ad4f124953 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentb4acbe4233b97ec51605c513ce6b215470574f80 (diff)
downloadrust-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