[Mlir-commits] [mlir] a9386bb - Fix MLIR lit test configuration after cmake Python detection change

Mehdi Amini llvmlistbot at llvm.org
Thu Nov 12 20:44:59 PST 2020


Author: Mehdi Amini
Date: 2020-11-13T04:44:45Z
New Revision: a9386bb0f9d753dd2ceca9435e8e6d68c0f7baa0

URL: https://github.com/llvm/llvm-project/commit/a9386bb0f9d753dd2ceca9435e8e6d68c0f7baa0
DIFF: https://github.com/llvm/llvm-project/commit/a9386bb0f9d753dd2ceca9435e8e6d68c0f7baa0.diff

LOG: Fix MLIR lit test configuration after cmake Python detection change

07f1047f41d changed the CMake detection to use find_package(Python3 ...
but didn't update the lit configuration to use the expected Python3_EXECUTABLE
cmake variable to point to the interpreter path.
This resulted in an empty path on MacOS.

Added: 
    

Modified: 
    mlir/test/lit.site.cfg.py.in

Removed: 
    


################################################################################
diff  --git a/mlir/test/lit.site.cfg.py.in b/mlir/test/lit.site.cfg.py.in
index cdb79616ecc0..1f1e897e86ef 100644
--- a/mlir/test/lit.site.cfg.py.in
+++ b/mlir/test/lit.site.cfg.py.in
@@ -12,7 +12,7 @@ config.llvm_shlib_dir = "@SHLIBDIR@"
 config.llvm_shlib_ext = "@SHLIBEXT@"
 config.llvm_exe_ext = "@EXEEXT@"
 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
-config.python_executable = "@PYTHON_EXECUTABLE@"
+config.python_executable = "@Python3_EXECUTABLE@"
 config.gold_executable = "@GOLD_EXECUTABLE@"
 config.ld64_executable = "@LD64_EXECUTABLE@"
 config.enable_shared = @ENABLE_SHARED@


        


More information about the Mlir-commits mailing list