about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2022-08-12 12:30:24 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2022-08-12 12:38:48 +0000
commitf76ca2247998bff4e10b73fcb464a0a83edbfeb0 (patch)
treee8106540ae6ea395c5fdf9f92e78995285881c03 /src
parente45f6000a0bd46d4b7580db59c86f3d30adbc270 (diff)
downloadrust-f76ca2247998bff4e10b73fcb464a0a83edbfeb0.tar.gz
rust-f76ca2247998bff4e10b73fcb464a0a83edbfeb0.zip
Enable inline asm on macOS
Diffstat (limited to 'src')
-rw-r--r--src/global_asm.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/global_asm.rs b/src/global_asm.rs
index 8e711988f81..917a6fff727 100644
--- a/src/global_asm.rs
+++ b/src/global_asm.rs
@@ -41,9 +41,7 @@ pub(crate) struct GlobalAsmConfig {
 
 impl GlobalAsmConfig {
     pub(crate) fn new(tcx: TyCtxt<'_>) -> Self {
-        let asm_enabled = cfg!(feature = "inline_asm")
-            && !tcx.sess.target.is_like_osx
-            && !tcx.sess.target.is_like_windows;
+        let asm_enabled = cfg!(feature = "inline_asm") && !tcx.sess.target.is_like_windows;
 
         GlobalAsmConfig {
             asm_enabled,
@@ -74,9 +72,7 @@ pub(crate) fn compile_global_asm(
                     .to_owned(),
             );
         } else {
-            return Err(
-                "asm! and global_asm! are not yet supported on macOS and Windows".to_owned()
-            );
+            return Err("asm! and global_asm! are not yet supported on Windows".to_owned());
         }
     }