Skip to content

Commit

Permalink
qt-build-utils: use --name CLI option with rcc
Browse files Browse the repository at this point in the history
to avoid C++ symbol name collisions if more than one qrc file
is used
  • Loading branch information
Be-ing committed Feb 8, 2023
1 parent 9bb35a2 commit bd9019b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/qt-build-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,8 @@ Q_IMPORT_PLUGIN({plugin_class_name});
input_path.to_str().unwrap(),
"-o",
output_path.to_str().unwrap(),
"--name",
input_path.file_name().unwrap().to_str().unwrap(),
])
.output()
.unwrap_or_else(|_| panic!("rcc failed for {}", input_path.display()));
Expand Down

0 comments on commit bd9019b

Please sign in to comment.