From 198e396eadad704e96c9f37e24effc89a904f570 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 31 Oct 2018 11:11:10 -0700 Subject: Support cargo check (#1128) - Based on code from @qti3e and @piscisaureus in #724 and #1125 respectively. - TODO The DENO_BUILD_PATH env var must be supplied and must be an absolute path, this restriction should be removed in future work. --- build_extra/rust/run.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'build_extra/rust/run.py') diff --git a/build_extra/rust/run.py b/build_extra/rust/run.py index 276e799cc..0b1fa3dc9 100644 --- a/build_extra/rust/run.py +++ b/build_extra/rust/run.py @@ -5,6 +5,9 @@ import subprocess import sys import os -os.environ["OUT_DIR"] = os.path.abspath(".") -assert os.path.isdir(os.environ["OUT_DIR"]) +# TODO This is for src/msg.rs to know where to find msg_generated.rs +# In the future we should use OUT_DIR here. +os.environ["DENO_BUILD_PATH"] = os.path.abspath(".") +assert os.path.isdir(os.environ["DENO_BUILD_PATH"]) + sys.exit(subprocess.call(sys.argv[1:], env=os.environ)) -- cgit v1.2.3