mirror of https://github.com/m-labs/artiq.git
test/lit: support overriding libartiq_support.so
This commit is contained in:
parent
4499ef1748
commit
4580f3dac8
|
@ -27,6 +27,8 @@ not_ = "{} {}".format(sys.executable, os.path.join(root, "lit", "not.py"))
|
||||||
config.substitutions.append( ("%not", not_) )
|
config.substitutions.append( ("%not", not_) )
|
||||||
|
|
||||||
if os.name == "posix":
|
if os.name == "posix":
|
||||||
|
support_lib = os.getenv("LIBARTIQ_SUPPORT"):
|
||||||
|
if not support_lib:
|
||||||
support_build = os.path.join(root, "libartiq_support")
|
support_build = os.path.join(root, "libartiq_support")
|
||||||
if subprocess.call(["rustc", os.path.join(support_build, "lib.rs"),
|
if subprocess.call(["rustc", os.path.join(support_build, "lib.rs"),
|
||||||
"--out-dir", support_build,
|
"--out-dir", support_build,
|
||||||
|
|
Loading…
Reference in New Issue