From 7c82667f75fdfe56ca66ccc0dbe2c92a989ba858 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 31 Oct 2018 00:32:42 -0700 Subject: Upgrade Flatbuffers. (#1127) Use msg_generated.rs as mod instead of crate. --- build_extra/rust/run.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 build_extra/rust/run.py (limited to 'build_extra/rust/run.py') diff --git a/build_extra/rust/run.py b/build_extra/rust/run.py new file mode 100644 index 000000000..276e799cc --- /dev/null +++ b/build_extra/rust/run.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python +# This file just executes its arguments, except that also adds OUT_DIR to the +# environ. This is for compatibility with cargo. +import subprocess +import sys +import os + +os.environ["OUT_DIR"] = os.path.abspath(".") +assert os.path.isdir(os.environ["OUT_DIR"]) +sys.exit(subprocess.call(sys.argv[1:], env=os.environ)) -- cgit v1.2.3