mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Automatically embed resources when cross-compiling
Don't assume that the file system is the same
This commit is contained in:
parent
84b8c37faa
commit
a472ca7c28
1 changed files with 2 additions and 2 deletions
|
@ -106,8 +106,8 @@ pub fn compile(path: impl AsRef<std::path::Path>) -> Result<(), CompileError> {
|
|||
|
||||
let mut compiler_config = CompilerConfiguration::default();
|
||||
|
||||
if let Some(target) = env::var("TARGET").ok() {
|
||||
if target == "wasm32-unknown-unknown" {
|
||||
if let (Some(target), Some(host)) = (env::var("TARGET").ok(), env::var("HOST").ok()) {
|
||||
if target != host {
|
||||
compiler_config.embed_resources = true;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue