summaryrefslogtreecommitdiff
path: root/build_extra/rust/run.py
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-31 11:11:10 -0700
committerGitHub <noreply@github.com>2018-10-31 11:11:10 -0700
commit198e396eadad704e96c9f37e24effc89a904f570 (patch)
treed07bd792de9023196a95374ead0520e54995dbc2 /build_extra/rust/run.py
parent21dac6646552dcacb68a0ad167723976f27b5c47 (diff)
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.
Diffstat (limited to 'build_extra/rust/run.py')
-rw-r--r--build_extra/rust/run.py7
1 files changed, 5 insertions, 2 deletions
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))