Skip to content

Commit 5dc6041

Browse files
committed
fix
1 parent e1f1ebf commit 5dc6041

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/enzyme_ad/jax/primitives.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,11 @@ def pass_pipeline(options):
425425

426426
def resource_dir():
427427
import os
428-
429428
dn = os.path.dirname(enzyme_call.__file__)
430-
res = os.path.join(dn, "..", "..", "clang", "staging")
429+
if os.getenv("ENZYME_BAZEL_NOWHEEL", None) is None:
430+
res = os.path.join(dn, "..", "..", "..", "external", "llvm-project", "clang", "staging")
431+
else:
432+
res = os.path.join(dn, "..", "..", "clang", "staging")
431433
return res
432434

433435

test/lit.cfg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@
4040
]
4141
path = os.path.pathsep.join(base_paths) # + config.extra_paths)
4242
config.environment["PATH"] = path
43+
config.environment["ENZYME_TEST_NOWHEEL"] = "1"
4344
config.environment["PYTHONPATH"] = os.environ["PYTHONPATH"]
4445
config.substitutions.append(("python", sys.executable))

0 commit comments

Comments
 (0)