mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
Fix linking of the interpreter
I don't know why, byt the 'crate-type = "lib"' seem to fix the problem
This commit is contained in:
parent
9e66ec71ce
commit
6e9d4f9e8d
4 changed files with 5 additions and 12 deletions
|
@ -11,7 +11,7 @@ publish = false
|
|||
|
||||
[lib]
|
||||
path = "lib.rs"
|
||||
crate-type = ["cdylib"]
|
||||
crate-type = ["lib", "cdylib"]
|
||||
|
||||
[features]
|
||||
# In the future, this shouldn't be a default feature, but should be enabled by cmake
|
||||
|
|
|
@ -11,7 +11,7 @@ LICENSE END */
|
|||
|
||||
#[doc(hidden)]
|
||||
#[cold]
|
||||
pub extern "C" fn use_modules() -> usize {
|
||||
pub fn use_modules() -> usize {
|
||||
#[cfg(feature = "sixtyfps-interpreter")]
|
||||
sixtyfps_interpreter::use_modules();
|
||||
sixtyfps_rendering_backend_default::use_modules();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue