summaryrefslogtreecommitdiff
path: root/src/msg.rs
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 /src/msg.rs
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 'src/msg.rs')
-rw-r--r--src/msg.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/msg.rs b/src/msg.rs
index 8b66704fc..5c0244509 100644
--- a/src/msg.rs
+++ b/src/msg.rs
@@ -1,4 +1,6 @@
#![allow(unused_imports)]
#![allow(dead_code)]
use flatbuffers;
-include!(concat!(env!("OUT_DIR"), "/gen/msg_generated.rs"));
+// TODO Replace DENO_BUILD_PATH with OUT_DIR. gn/ninja should generate into
+// the same output directory as cargo uses.
+include!(concat!(env!("DENO_BUILD_PATH"), "/gen/msg_generated.rs"));