Skip to content

Commit de19664

Browse files
committed
Fix some warnings and update docs
1 parent 9d0cda3 commit de19664

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

qttypes/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ fn detect_version_from_header(qt_include_path: &str, qt_library_path: &str) -> S
133133
}
134134

135135
fn main() {
136+
println!("cargo:rustc-check-cfg=cfg(no_qt)");
137+
println!("cargo:rustc-check-cfg=cfg(qt_5_11,qt_5_12,qt_5_15,qreal_is_float)");
138+
136139
// Simple cfg!(target_* = "...") doesn't work in build scripts the way it does in crate's code.
137140
// https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts
138141
let cargo_target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();

qttypes/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4141
//! directory where the Qt headers and Qt libraries are installed.
4242
//! - Otherwise you can specify a `QMAKE` environment variable with the absolute path of the
4343
//! `qmake` executable which will be used to query these paths.
44-
//! - If none of these environment variable is set, the `qmake` executable found in `$PATH`.
44+
//! - If none of these environment variable is set, the `qmake6` or `qmake` executable found in `$PATH`.
4545
//!
4646
//! ## Philosophy
4747
//!

0 commit comments

Comments
 (0)