diff --git a/llvm/utils/gn/secondary/llvm/utils/llvm-lit/BUILD.gn b/llvm/utils/gn/secondary/llvm/utils/llvm-lit/BUILD.gn --- a/llvm/utils/gn/secondary/llvm/utils/llvm-lit/BUILD.gn +++ b/llvm/utils/gn/secondary/llvm/utils/llvm-lit/BUILD.gn @@ -86,6 +86,7 @@ values = [ "LLVM_SOURCE_DIR=" + rebase_path("//llvm", dir), + "Python3_EXECUTABLE=$python_path", "BUILD_MODE=.", "LLVM_LIT_CONFIG_MAP=" + config_map, ] diff --git a/llvm/utils/llvm-lit/llvm-lit.in b/llvm/utils/llvm-lit/llvm-lit.in --- a/llvm/utils/llvm-lit/llvm-lit.in +++ b/llvm/utils/llvm-lit/llvm-lit.in @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!@Python3_EXECUTABLE@ # -*- coding: utf-8 -*- import os