Skip to content

Commit

Permalink
fix detail
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 5aa1e51 commit 93967b8
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 @@ -42,10 +42,12 @@
# test_source_root: The root path where tests are located.
config.test_source_root = Path(__file__).parent.resolve()

repo_root = Path(__file__).parent.parent.parent
repo_root = Path(__file__).parent.parent.parent.resolve()

# This is important since `benchmark` is closed source
# still right now and is always used by the benchmarks.
pre_built_packages_path = (
pre_built_packages_path = os.environ.get(
"MODULAR_MOJO_NIGHTLY_IMPORT_PATH",
repo_root / ".magic" / "envs" / "default" / "lib" / "mojo",
)

Expand All @@ -61,12 +63,12 @@
# 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}"
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}"
)

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

0 comments on commit 93967b8

Please sign in to comment.