mirror of https://github.com/m-labs/artiq.git
test: do not build libartiq_support in lit.cfg
This commit is contained in:
parent
9822b88d9b
commit
a18d2468e9
|
@ -2,7 +2,6 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
import subprocess
|
||||
import lit.util
|
||||
import lit.formats
|
||||
|
||||
|
@ -27,16 +26,7 @@ not_ = "{} {}".format(sys.executable, os.path.join(root, "lit", "not.py"))
|
|||
config.substitutions.append( ("%not", not_) )
|
||||
|
||||
if os.name == "posix":
|
||||
support_lib = os.getenv("LIBARTIQ_SUPPORT")
|
||||
if not support_lib:
|
||||
support_build = os.path.join(root, "libartiq_support")
|
||||
if subprocess.call(["rustc", os.path.join(support_build, "lib.rs"),
|
||||
"--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")
|
||||
config.environment["LIBARTIQ_SUPPORT"] = support_lib
|
||||
config.environment["LIBARTIQ_SUPPORT"] = os.getenv("LIBARTIQ_SUPPORT")
|
||||
config.environment["RUST_BACKTRACE"] = "1"
|
||||
|
||||
config.available_features.add("exceptions")
|
||||
|
|
Loading…
Reference in New Issue