Skip to content

Commit 14483a6

Browse files
authored
feat: raise compiler error if musl is used (slint-ui#8450)
1 parent cfde6f5 commit 14483a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/rs/slint/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ each instance will have their own instance of associated globals singletons.
201201
#![cfg_attr(not(feature = "std"), no_std)]
202202
#![allow(clippy::needless_doctest_main)] // We document how to write a main function
203203

204+
#[cfg(target_env = "musl")]
205+
compile_error!("Compiling with MUSL is not supported by this crate.");
206+
204207
extern crate alloc;
205208

206209
#[cfg(not(feature = "compat-1-2"))]

0 commit comments

Comments
 (0)