We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0c3ec6 commit 7271873Copy full SHA for 7271873
build.rs
@@ -0,0 +1,8 @@
1
+fn main() {
2
+ let profile = std::env::var("PROFILE").unwrap();
3
+ let target = std::env::var("TARGET").unwrap();
4
+
5
+ if profile == "debug" && !target.starts_with("x86_64") {
6
+ println!("cargo:warning=synopsys-usb-otg is being compiled in debug mode. This driver works reliably only in release mode!");
7
+ }
8
+}
0 commit comments