[update_tet_checks] Don't work fine under the MSYS2 environment

I tested both python3.6 and python3.9 are not worked under the MSYS2 environment.

  • cmd: llvm/utils/update_test_checks.py --opt-binary=build/bin/opt.exe llvm/test/Transforms/InstCombine/mul.ll
  • the opt.exe works fine with command line
admin@DESKTOP-60K0V6B MINGW64 /e/source/llvm-project (main)
$ head llvm/test/Transforms/InstCombine/test.ll
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -passes=instcombine -S | FileCheck %s

Most likely the path to opt isn’t working - have you tried an absolute path?

AFAICT this would be:


Oh, yes. it works with absolute path, thanks @RKSimon .

admin@DESKTOP-60K0V6B MINGW64 /e/source/llvm-project (main)
$ llvm/utils/update_test_checks.py --opt-binary=/e/source/llvm-project/build/bin/opt.exe llvm/test/Transforms/InstCombine/test.ll