|
@@ -1,6 +1,7 @@
|
|
|
fn main() -> Result<(), std::io::Error> {
|
|
fn main() -> Result<(), std::io::Error> {
|
|
|
const PROTOC_ENVAR: &str = "PROTOC";
|
|
const PROTOC_ENVAR: &str = "PROTOC";
|
|
|
if std::env::var(PROTOC_ENVAR).is_err() {
|
|
if std::env::var(PROTOC_ENVAR).is_err() {
|
|
|
|
|
+ #[cfg(not(windows))]
|
|
|
std::env::set_var(PROTOC_ENVAR, protobuf_src::protoc());
|
|
std::env::set_var(PROTOC_ENVAR, protobuf_src::protoc());
|
|
|
}
|
|
}
|
|
|
|
|
|