forked from M-Labs/artiq
test/lit: support overriding libartiq_support.so
This commit is contained in:
parent
4499ef1748
commit
4580f3dac8
|
@ -27,13 +27,15 @@ 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_build = os.path.join(root, "libartiq_support")
|
support_lib = os.getenv("LIBARTIQ_SUPPORT"):
|
||||||
if subprocess.call(["rustc", os.path.join(support_build, "lib.rs"),
|
if not support_lib:
|
||||||
"--out-dir", support_build,
|
support_build = os.path.join(root, "libartiq_support")
|
||||||
"-Cpanic=unwind", "-g"]) != 0:
|
if subprocess.call(["rustc", os.path.join(support_build, "lib.rs"),
|
||||||
lit_config.fatal("Unable to build JIT support library")
|
"--out-dir", support_build,
|
||||||
|
"-Cpanic=unwind", "-g"]) != 0:
|
||||||
|
lit_config.fatal("Unable to build JIT support library")
|
||||||
|
|
||||||
support_lib = os.path.join(support_build, "libartiq_support.so")
|
support_lib = os.path.join(support_build, "libartiq_support.so")
|
||||||
config.environment["LIBARTIQ_SUPPORT"] = support_lib
|
config.environment["LIBARTIQ_SUPPORT"] = support_lib
|
||||||
config.environment["RUST_BACKTRACE"] = "1"
|
config.environment["RUST_BACKTRACE"] = "1"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue