mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
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:
parent
27b077b158
commit
509a45dfb4
1 changed files with 4 additions and 0 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue