[all-commits] [llvm/llvm-project] 8b11c3: [llvm-mt] Do not build llvm-mt if not functional (...
Michael Kruse via All-commits
all-commits at lists.llvm.org
Tue Apr 8 07:17:16 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8b11c39a0fad7f6ec48c323a0deeb3c103005200
https://github.com/llvm/llvm-project/commit/8b11c39a0fad7f6ec48c323a0deeb3c103005200
Author: Michael Kruse <llvm-project at meinersbur.de>
Date: 2025-04-08 (Tue, 08 Apr 2025)
Changed paths:
M llvm/docs/CMake.rst
M llvm/test/CMakeLists.txt
M llvm/test/tools/llvm-mt/help.test
M llvm/tools/llvm-mt/CMakeLists.txt
Log Message:
-----------
[llvm-mt] Do not build llvm-mt if not functional (#134631)
llvm-mt requires libxml2 to work, so do not even build it without
libxml2.
CMake 3.31 and later prefer llvm-mt.exe over Microsoft's mt.exe if
available and using clang-cl.exe as CMAKE_CXX_COMPILER. When CMake picks
up llvm-mt.exe without libxml2, any build will fail with the message
```
llvm-mt: error: no libxml2
```
Any test except `--help` already uses `REQUIRES: libxml2`. There is no
point in having a non-functional executable. Not building llvm-mt.exe
will force CMake to use Microsoft's `mt.exe` instead.
Fixes: #134237
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list