- Aug 02, 2021
-
-
Ben Boeckel authored
This method makes usage much easier to read than prepending with `!!` or `static_cast<bool>` to extract a boolean from the structure.
-
- Jul 29, 2021
-
-
5d4c8b04 SystemInformation: Simplify demangle buffer management Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !226
-
- Jul 28, 2021
-
-
Brad King authored
If the buffer we pass to `__cxa_demangle` is not large enough, it will be reallocated internally. Avoid dealing with possibly two allocations to free by just letting `__cxa_demangle` allocate a suitable buffer.
-
- Jul 26, 2021
-
-
4e69b791 SystemInformation: Add option to explicitly avoid using execinfo Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !225
-
backtrace(3) from libexecinfo in musl will run into crash [1]. Provide an option to disable it explicitly even if libexecinfo is present. 1: https://www.openwall.com/lists/musl/2021/07/17/1
-
- Jul 08, 2021
-
-
7079df74 SystemTools: Fix GetOperatingSystemNameAndVersion empty string return Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !224
-
- Jul 07, 2021
-
-
Avoid undefined behavior caused by constructing `std::string` from `0`.
-
- Jun 28, 2021
-
-
b954dd54 testDynamicLoader: Use LIBC_SO if LIBDL_SO is not defined by glibc anymore. Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !223
-
`LIBC_SO` is a more long-term choice, suitable for new targets that may no longer define `LIBDL_SO`. Signed-off-by:
Björn Esser <besser82@fedoraproject.org>
-
ab959cd2 SystemInformation: fix typo in comment df91e5f1 EncodingC: use NULL for pointers Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !222
-
- Jun 25, 2021
-
-
b4a2a03c testDynamicLoader: Use LIBDL_SO macro if defined. Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !221
-
- Jun 24, 2021
-
-
Ben Boeckel authored
-
Ben Boeckel authored
-
- Jun 23, 2021
-
-
Björn Esser authored
Starting with glibc v2.34 there is no external version of libdl.so anymore. It has been merged into the glibc libc.so. Assuming libdl.so will be present will break the test, thus the LIBDL_SO macro should be used. If the macro is not defined on the system, we ensure it will be defined using the previously hardcoded value. Signed-off-by:
Björn Esser <besser82@fedoraproject.org>
-
- Jun 02, 2021
-
-
e65c5693 testSystemTools: apply root-check to more systems Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !220
-
- Jun 01, 2021
-
-
The TestFileAccess test fails on FreeBSD (probably others) with this message: TestFileAccess incorrectly indicated that this is a writable file if the test is run as root; apply the same cop-out as on Linux and don't run it when testing as root.
-
- May 07, 2021
-
-
3683e5ab SystemTools: Implement CreateSymlink and ReadSymlink on Windows fd2ec23d SystemTools: Implement FileIsSymlink using canonical reparse structure Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !216
-
1ea48581 ProcessUNIX: Fix kwsysProcessesSignalHandler() if !KWSYSPE_USE_SIGINFO Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !219
-
8f3c4879 Status: Fix GetWindows return type Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !218
-
- May 06, 2021
-
-
Ali Mohammad Pur authored
- `struct sigaction&` is not a valid C type name, its usage suggests that it was intended to be a pointer. - `newSigChldAction` does not exist, appears to have just been forgotten in a change? - `return 0` from a void function.
-
Brad King authored
A Windows-native error is an unsigned integer.
-
5c6539ca Terminal: Revert "Simplify CLICOLOR_FORCE check" Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !217
-
- May 05, 2021
-
-
f308fcfb Terminal: Disable color output when CLICOLOR is set to 0 bbf6cdef Terminal: Simplify CLICOLOR_FORCE check Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !215
-
- May 04, 2021
-
-
This commit completes the color output control support. Previously, color output could only be forced ON by setting the environment variable CLICOLOR_FORCE to 1. With this commit, color output can also be disabled, by setting the environment variable CLICOLOR to 0. This can be useful e.g. for processing of build logs when the cmake run happens within a container (where isatty is true), but the processing happens on the outside. See http://bixense.com/clicolors/ for documentation of this convention.
-
-
99ffa991 cmake: clear some configure checks when the deployment target changes Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !214
-
- Apr 29, 2021
-
-
Ben Boeckel authored
If the target is changed since the last configure, some checks need to be looked up again. Clear their cache entries when these checks need to be redone.
-
6e59fd94 Process: Suppress NVHPC warning in FD_ZERO Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !213
-
- Apr 28, 2021
-
-
Brad King authored
NVHPC warns about the FD_ZERO implementation: warning #550-D: variable "__d0" was set but never used
-
- Apr 26, 2021
-
-
7b0f5c20 SystemInformation: improve CPU counting on non-standard architectures Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !212
-
- Apr 23, 2021
-
-
Rolf Eike Beer authored
When /proc/cpuinfo does not match the expected layout the number of logical or physical CPUs can be reported as 0. Adapt the parsing to catch the layout used on Sparc, and ensure that the number of logical cores is never 0. While at it slightly improve the CPU frequency checking so it also matches Linux Sparc32.
-
- Apr 19, 2021
-
-
5b941f33 SystemTools: Adapt permissions test to MSYS f00dd83e SystemTools: Avoid unnecessary assumption of working directory in test case 17f4af9b SystemTools: Use octal base for error messages in permission test Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !211
-
- Apr 16, 2021
-
-
Cygwin/MSYS uses umask on *stat* when noacl is set on the filesystem (which MSYS sets by default), so the returned permissions don't necessarily reflect what was actually set. Solve by delaying umask to where it is actually needed.
-
-
It matches the chmod notation, and easier to read on test failure.
-
- Apr 14, 2021
-
-
a95f61cf SystemTools: Return Status from symlink operations 0664553b SystemTools: Return Status from copy operations 6aec6af9 SystemTools: Return Status from ChangeDirectory 2446b205 SystemTools: Return Status from MakeDirectory ab198a22 SystemTools: Return Status from GetShortPath 06216f0b SystemTools: Return Status from FileTimeCompare fadfd7a0 SystemTools: Return Status from Touch c5a99e59 SystemTools: Return Status from GetPermissions and SetPermissions ... Acked-by:
Kitware Robot <kwrobot@kitware.com> Reviewed-by:
Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !210
-
- Apr 13, 2021
-
-
Brad King authored
-