Skip to content

Commit

Permalink
fix details
Browse files Browse the repository at this point in the history
Signed-off-by: martinvuyk <[email protected]>
  • Loading branch information
martinvuyk committed Oct 24, 2024
1 parent 93967b8 commit cf8d212
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions stdlib/benchmarks/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,27 +48,29 @@
# still right now and is always used by the benchmarks.
pre_built_packages_path = os.environ.get(
"MODULAR_MOJO_NIGHTLY_IMPORT_PATH",
repo_root / ".magic" / "envs" / "default" / "lib" / "mojo",
os.environ.get(
"MODULAR_MOJO_IMPORT_PATH",
repo_root / ".magic" / "envs" / "default" / "lib" / "mojo",
),
)

# The `run-tests.sh` script creates the build directory for you.
build_root = repo_root / "build"

# The tests are executed inside this build directory to avoid
# polluting the source tree.
config.test_exec_root = build_root / "stdlib" / "benchmarks"
config.test_exec_root = (build_root / "stdlib" / "benchmarks").resolve()

# Add both the open source, locally built `stdlib.mojopkg`
# along with the closed source, pre-built packages shipped
# with the Mojo SDK to the appropriate environment variables.
# These environment variables are interpreted by the mojo parser
# when resolving imports.
os.environ["MODULAR_MOJO_NIGHTLY_IMPORT_PATH"] = (
f"{build_root},{pre_built_packages_path}"
)
os.environ["MODULAR_MOJO_MAX_NIGHTLY_IMPORT_PATH"] = (
f"{build_root},{pre_built_packages_path}"
)
joint_path = f"{build_root.resolve()},{pre_built_packages_path.resolve()}"
os.environ["MODULAR_MOJO_NIGHTLY_IMPORT_PATH"] = joint_path
os.environ["MODULAR_MOJO_MAX_NIGHTLY_IMPORT_PATH"] = joint_path
os.environ["MODULAR_MOJO_IMPORT_PATH"] = joint_path
os.environ["MODULAR_MOJO_MAX_IMPORT_PATH"] = joint_path

# Pass through several environment variables
# to the underlying subprocesses that run the tests.
Expand Down

0 comments on commit cf8d212

Please sign in to comment.