about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm
diff options
context:
space:
mode:
authorVladimir Michael Eatwell <dimir@fb.com>2022-03-23 14:54:58 +0000
committerVladimir Michael Eatwell <dimir@fb.com>2022-06-13 16:08:53 +0100
commitdc5c61028ab9e0a1985ccc913fcab88b5f50efb6 (patch)
tree05fd841ede807eb516607988f0e449206fb07c29 /compiler/rustc_codegen_llvm
parentc84594661c1b51feb539b479b58bb551fcf8e19a (diff)
downloadrust-dc5c61028ab9e0a1985ccc913fcab88b5f50efb6.tar.gz
rust-dc5c61028ab9e0a1985ccc913fcab88b5f50efb6.zip
Add Apple WatchOS compile targets
Diffstat (limited to 'compiler/rustc_codegen_llvm')
-rw-r--r--compiler/rustc_codegen_llvm/src/back/write.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/write.rs b/compiler/rustc_codegen_llvm/src/back/write.rs
index 50f8949c897..c55a22ff23f 100644
--- a/compiler/rustc_codegen_llvm/src/back/write.rs
+++ b/compiler/rustc_codegen_llvm/src/back/write.rs
@@ -1036,7 +1036,8 @@ unsafe fn embed_bitcode(
     // reason (see issue #90326 for historical background).
     let is_apple = cgcx.opts.target_triple.triple().contains("-ios")
         || cgcx.opts.target_triple.triple().contains("-darwin")
-        || cgcx.opts.target_triple.triple().contains("-tvos");
+        || cgcx.opts.target_triple.triple().contains("-tvos")
+        || cgcx.opts.target_triple.triple().contains("-watchos");
     if is_apple
         || cgcx.opts.target_triple.triple().starts_with("wasm")
         || cgcx.opts.target_triple.triple().starts_with("asmjs")