Skip to content

Commit 0055d6c

Browse files
committed
Fix missing GUI when building with Rust 1.61
1 parent 941f0f3 commit 0055d6c

File tree

3 files changed

+24
-18
lines changed

3 files changed

+24
-18
lines changed

Cargo.lock

+21-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

main/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ built = { version = "0.5.1", features = ["git2", "chrono"] }
174174
# For generating bindings (for dialog resource IDs and EEL functions)
175175
bindgen = "0.52.0"
176176
# For compiling EEL and SWELL dialog resources
177-
cc = "1.0.50"
177+
cc = { git = "https://github.com/petrochenkov/cc-rs.git", rev = "9efa25c77c50229fa84fb09f59c034417d816aa8" }
178178
# For embedding ResEdit files on Windows
179179
embed-resource = "1.3"
180180
# For being able to read the UTF-16LE dialog resource file generated by MSVC

main/build.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ fn compile_dialogs() {
8585
build
8686
.cpp(true)
8787
.warnings(false)
88-
.file("src/infrastructure/ui/dialogs.cpp");
88+
.file("src/infrastructure/ui/dialogs.cpp")
89+
.link_lib_modifiers(Some("+whole-archive"));
8990
if let Some(stdlib) = util::determine_cpp_stdlib() {
9091
// Settings this to None on Linux causes the linker to automatically link against C++
9192
// anymore, so we just invoke that on macOS.

0 commit comments

Comments
 (0)