Prospective fix for windows build

On Windows, `cargo build -p slint-lsp` creates slint-lsp.exe and slint-lsp.dll.
Both claim slint-lsp.pdb for their debug info, which
causes a race condition where two link.exe processes will try to create it.

Cargo, upon invocation, even warns about this clash. Therefore let's rename the
cdylib to disambiguate.
This commit is contained in:
Simon Hausmann 2022-06-01 16:24:03 +02:00
parent 27b077b158
commit 509a45dfb4

View file

@ -26,6 +26,10 @@ path = "main.rs"
# lib is there only for the web
crate-type = ["cdylib"]
path = "wasm_main.rs"
# On windows building this package creates slint-lsp.exe and slint-lsp.dll.
# To avoid that both end up trying to create slint-lsp.pdb for their debug
# symbols, rename the lib.
name = "slint_lsp_wasm"
[features]
backend-qt = ["slint-interpreter/backend-qt"]