diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-10-31 00:32:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-31 00:32:42 -0700 |
commit | 7c82667f75fdfe56ca66ccc0dbe2c92a989ba858 (patch) | |
tree | 0d75ddd4f73d046727bdd0369515b09532647c16 /build_extra/rust/run.py | |
parent | 2422e526257d971ba382bb9195e0ee527b918672 (diff) |
Upgrade Flatbuffers. (#1127)
Use msg_generated.rs as mod instead of crate.
Diffstat (limited to 'build_extra/rust/run.py')
-rw-r--r-- | build_extra/rust/run.py | 10 |
1 files changed, 10 insertions, 0 deletions
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)) |