Skip to content

Commit 3b8de11

Browse files
committed
Move LLVM version warning to experimental banner
1 parent 83268f7 commit 3b8de11

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

Tools/jit/_targets.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,10 @@ def build(
233233
if not self.stable:
234234
warning = f"JIT support for {self.triple} is still experimental!"
235235
request = "Please report any issues you encounter.".center(len(warning))
236+
if self.llvm_version != _llvm._LLVM_VERSION:
237+
request = f"Warning! Building with a LLVM version other than {_llvm._LLVM_VERSION} is not supported."
236238
outline = "=" * len(warning)
237239
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-
245240
digest = f"// {self._compute_digest()}\n"
246241
if (
247242
not force

Tools/jit/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
target.force = args.force
5050
target.verbose = args.verbose
5151
target.cflags = args.cflags
52+
target.pyconfig_dir = args.pyconfig_dir
5253
if args.llvm_version:
5354
target.llvm_version = args.llvm_version
54-
target.pyconfig_dir = args.pyconfig_dir
5555
target.build(
5656
comment=comment,
5757
force=args.force,

0 commit comments

Comments
 (0)