diff --git a/torch-sys/build.rs b/torch-sys/build.rs index d7aff1fd..d91b750b 100644 --- a/torch-sys/build.rs +++ b/torch-sys/build.rs @@ -403,6 +403,7 @@ impl SystemInfo { .pic(true) .warnings(false) .includes(&self.libtorch_include_dirs) + .flag("-std=c++17") .files(&c_files) .compile("tch"); }