about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/inline_asm.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/inline_asm.rs b/src/inline_asm.rs
index 75d7f2e5c54..d809fd4bb15 100644
--- a/src/inline_asm.rs
+++ b/src/inline_asm.rs
@@ -228,6 +228,16 @@ pub(crate) fn codegen_inline_asm<'tcx>(
             fx.bcx.ins().jump(destination_block, &[]);
             return;
         }
+
+        if cfg!(not(feature = "inline_asm")) {
+            fx.tcx.sess.span_err(
+                span,
+                "asm! and global_asm! support is disabled while compiling rustc_codegen_cranelift",
+            );
+        } else {
+            fx.tcx.sess.span_err(span, "asm! and global_asm! are not yet supported on Windows");
+        }
+        return;
     }
 
     let operands = operands