- Feb 25, 2019
-
-
363bf5ab Configure: Drop Large File Support macro definitions Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !130
-
- Feb 22, 2019
-
-
Brad King authored
Historically we have defined macros like * `_LARGEFILE_SOURCE` * `_LARGEFILE64_SOURCE` * `_LARGE_FILES` * `_FILE_OFFSET_BITS` in `Configure.h` to activate large file support in system headers. This requires consuming projects to include the header at the beginning of every translation unit in order to get the macros defined consistently. Instead these macros should be defined by the build system on the compiler command line. Drop them from KWSys in favor of that approach. The macros are not needed as often as they once were anyway.
-
- Feb 14, 2019
-
-
6090d36b Glob: Use the default copy constructor and assignment operator Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !126
-
95ced423 hashtable: delete assignment operator instead of poisoning it Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !125
-
- Feb 13, 2019
-
-
No need to write ones that do what the default one does, makes sure that if a new field is introduced it won't be forgotten in any of the two.
-
Use the C++11 approach.
-
- Feb 12, 2019
-
-
01089e4c Prefer back/data over dereferencing rbegin/begin iterator Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !129
-
7d50c26d Delete some default constructors and assignment operators Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !124
-
- Feb 06, 2019
-
-
Artur Ryt authored
Changed for sequenced container.
-
- Feb 05, 2019
-
-
d1536b02 macOS: Better approximation for AvailablePhysicalMemory Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !128
-
- Feb 04, 2019
-
-
Nicolae Vartolomei authored
On macOS, free pages does not seem to be a good indicatur for "available physical memory". Neither inactive ones, but it answers better questions like: "How much memory could this process use in best case scenario". Free + Inactive aproximately matches Activity Monitor.app output. https://developer.apple.com/library/archive/documentation/Performance/Conceptual/ManagingMemory/Articles/AboutMemory.html#//apple_ref/doc/uid/20001880-99406-TPXREF103
-
Albert Astals Cid authored
They are unused, but if someone used them they would lead to problems since they would copy the internal raw pointers and the destructor would cause double delete
-
- Jan 30, 2019
-
-
6db3c607 Require C++11 or higher to compile KWSys 5d92e8d9 Require CMake 3.1 or higher for KWSys Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !127
-
Brad King authored
In standalone builds, default to C++11. Provide options for host projects to control the standard level.
-
Brad King authored
-
- Jan 24, 2019
-
-
aa1f7f7c SystemTools: Fix FileIsSymlink with Windows data deduplication Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !122
-
3f35954d SystemTools: Add TextFilesDiffer method Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Taylor Braun-Jones <taylor@braun-jones.org> Merge-request: !121
-
28db6989 cmake: add an option for building with PIC Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !123
-
- Jan 23, 2019
-
-
Compares files in a line-ending-insensitive way.
-
Ben Boeckel authored
When building statically, PIC may still be wanted in order to be used in a shared library elsewhere.
-
On Windows machines with enabled data deduplication files duplicates are incorrectly recognized as symlinks and therefore install fails with "file COPY cannot read symlink". Similar issues can be found here: * https://github.com/Microsoft/vcpkg/issues/2488 * https://github.com/puppetlabs/puppet/pull/6513 From the latter fix this commit is mainly influenced.
-
- Jan 22, 2019
-
-
8e9970fb SystemInformation: support BSD platforms for GetProcessId Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !119
-
GetProcessId() is currently only implemented for Win32, Linux and OS X. This commit adds wider support for it by extending the definitions in the function to also cover BSD platforms, which implement this function.
-
7a5e5af8 SystemTools: Revert "Fix FileIsSymlink with Windows data deduplication" Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !120
-
Brad King authored
This reverts commit ef373416 (SystemTools: Fix FileIsSymlink with Windows data deduplication, 2019-01-18). It regressed `FileIsSymlink` such that it does not always recognize broken symlinks as symlinks. Revert pending further investigation. Notes for re-introduction: * We need to add a test to cover the case that broke. * We should save the Encoding::ToWindowsExtendedPath result and use it for both GetFileAttributesW and CreateFileW instead of using Encoding::ToWide for the latter.
-
- Jan 21, 2019
-
-
ef373416 SystemTools: Fix FileIsSymlink with Windows data deduplication Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !118
-
- Jan 18, 2019
-
-
On Windows machines with enabled data deduplication files duplicates are incorrectly recognized as symlinks and therefore install fails with "file COPY cannot read symlink". Similar issues can be found here: * https://github.com/Microsoft/vcpkg/issues/2488 * https://github.com/puppetlabs/puppet/pull/6513 From the later fix this commit is mainly influenced.
-
- Jan 14, 2019
-
-
f44cbf93 Fixed clang -Wextra-semi-stmt warnings Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !117
-
- Jan 11, 2019
-
-
Sean McBride authored
-
- Dec 12, 2018
-
-
228c60b8 SystemTools: CopyFileAlways: try to create a cheap CoW clone first Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !116
-
- Dec 11, 2018
-
-
Gregor Jasny authored
-
- Nov 28, 2018
-
-
4f9fb9aa SystemTools: Fix Touch to avoid requiring file ownership Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !115
-
SystemTools::Touch should only require +w file permissions. The previous implementation used `stat` to get the current time, and then passed that time to one of utimensat/utimes/utime. However, utimes/utimensat only permit an arbitrary-time argument to be passed by the file owner. Therefore, per the docs, we pass NULL for the `times` argument to utimes and utimensat, to indicate using the current time. This is permitted for any UID with +w on the file. Remove plain `utime` fallback that is no longer necessary.
-
- Oct 25, 2018
-
-
993be8b6 Set CMake Policy CMP0069 to NEW within KWSys Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !113
-
- Oct 24, 2018
-
-
Add LTO flags when `INTERPROCEDURAL_OPTIMIZATION` is enabled.
-
- Oct 19, 2018
-
-
162b3ed7 SystemInformation: Fix compilation on GNU/{kFreeBSD,Hurd} Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !112
-
- Oct 18, 2018
-
-
Includes of `cxxabi.h`, `execinfo.h`, etc. were guarded more restrictively (e.g. additionally by `__linux`) than the code which needs them (just by e.g. `KWSYS_SYSTEMINFORMATION_HAS_CPP_DEMANGLE`). kFreeGNU has some of these headers so extend the `__linux` ifdef to `kFreeBSD` and `Hurd` as well. Ideally the code should be fixed to have the same level of ifdef protection for both include and use of these APIs, but this is good enough for now pending further investigation.
-
- Oct 05, 2018
-
-
a5caf8a4 cmake: support an alias target Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !111
-
- Oct 04, 2018
-
-
Ben Boeckel authored
VTK's new module system expects alias targets for each actual target. Support creating such an alias target.
-
- Oct 03, 2018
-
-
f17f22a2 Terminal: Add alacritty and alacritty-direct to VT100 color support whitelist Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !110
-