diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2022-08-12 12:30:24 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2022-08-12 12:38:48 +0000 |
| commit | f76ca2247998bff4e10b73fcb464a0a83edbfeb0 (patch) | |
| tree | e8106540ae6ea395c5fdf9f92e78995285881c03 /src | |
| parent | e45f6000a0bd46d4b7580db59c86f3d30adbc270 (diff) | |
| download | rust-f76ca2247998bff4e10b73fcb464a0a83edbfeb0.tar.gz rust-f76ca2247998bff4e10b73fcb464a0a83edbfeb0.zip | |
Enable inline asm on macOS
Diffstat (limited to 'src')
| -rw-r--r-- | src/global_asm.rs | 8 |
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()); } } |
