[all-commits] [llvm/llvm-project] af2796: [test] Add ability to get error messages from CMak...
zero9178 via All-commits
all-commits at lists.llvm.org
Mon Mar 15 12:57:40 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: af2796c76d2ff4b73165ed47959afd35a769beee
https://github.com/llvm/llvm-project/commit/af2796c76d2ff4b73165ed47959afd35a769beee
Author: Markus Böck <markus.boeck02 at gmail.com>
Date: 2021-03-15 (Mon, 15 Mar 2021)
Changed paths:
M clang/CMakeLists.txt
M clang/test/lit.site.cfg.py.in
M lld/CMakeLists.txt
M lld/test/lit.site.cfg.py.in
M llvm/CMakeLists.txt
A llvm/cmake/modules/GetErrcMessages.cmake
M llvm/test/lit.site.cfg.py.in
M llvm/utils/lit/lit/llvm/config.py
Log Message:
-----------
[test] Add ability to get error messages from CMake for errc substitution
Visual Studios implementation of the C++ Standard Library does not use strerror to produce a message for std::error_code unlike other standard libraries such as libstdc++ or libc++ that might be used.
This patch adds a cmake script that through running a C++ program gets the error messages for the POSIX error codes and passes them onto lit through an optional config parameter.
If the config parameter is not set, or getting the messages failed, due to say a cross compiling configuration without an emulator, it will fall back to using pythons strerror functions.
Differential Revision: https://reviews.llvm.org/D98278
More information about the All-commits
mailing list