Skip to content

Commit 8239b4b

Browse files
committed
Add warning when building with custom LLVM_VERSION
1 parent 238c9d7 commit 8239b4b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Tools/jit/_targets.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,13 @@ def build(
235235
request = "Please report any issues you encounter.".center(len(warning))
236236
outline = "=" * len(warning)
237237
print("\n".join(["", outline, warning, request, outline, ""]))
238+
239+
if self.llvm_version != _llvm._LLVM_VERSION:
240+
warning = f"LLVM version {self.llvm_version} is not officially supported!"
241+
request = "Use custom LLVM version at your own rist.".center(len(warning))
242+
outline = "=" * len(warning)
243+
print("\n".join(["", outline, warning, request, outline, ""]))
244+
238245
digest = f"// {self._compute_digest()}\n"
239246
if (
240247
not force

0 commit comments

Comments
 (0)