This is an automated email from the ASF dual-hosted git repository.

jroesch pushed a commit to branch ci-docker-staging
in repository https://gitbox.apache.org/repos/asf/tvm.git

commit 309eff02e46e23212083f4aa40424a980c1e701e
Author: Jared Roesch <jroe...@octoml.ai>
AuthorDate: Mon Feb 22 23:08:49 2021 -0800

    Fix path
---
 rust/tvm-sys/build.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rust/tvm-sys/build.rs b/rust/tvm-sys/build.rs
index 560ab86..107d813 100644
--- a/rust/tvm-sys/build.rs
+++ b/rust/tvm-sys/build.rs
@@ -95,7 +95,7 @@ fn main() -> Result<()> {
     let dlpack_include = format!("-I{}/3rdparty/dlpack/include/", source_path);
     let tvm_include = format!("-I{}/include/", source_path);
 
-    let out_file = PathBuf::from(concat!(env!("OUT_DIR"), 
"/c_runtime_api.rs"));
+    let out_file = 
PathBuf::from(std::env::var("OUT_DIR")?).join("c_runtime_api.rs");
 
     // @see rust-bindgen#550 for `blacklist_type`
     bindgen::Builder::default()

Reply via email to