Robin Getz
15ff59e57f
cmake : Make link-time optimization configurable
...
Add an ENABLE_LTO option to make link-time optimization configurable on
while keeping it enabled by default.
This allows builds that require LTO to be disabled (add -DENABLE_LTO=OFF),
including builds for Coverity static analysis, without changing the default
optimization settings.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
3 months ago
Jon Beniston
f3aa3f9013
/Zi not supported by linked. Need to use /DEBUG.
...
/DEBUG turns off /OPT:REF /OPT:ICF by default, so need to explictly switch them back on.
1 year ago
Jon Beniston
f204c168f6
Add crash handler on Windows.
...
Add memory buffer to Logger, so last 500 log messages can be included in crash report.
Generate and include stripped pdb files so stack trace can include function names.
1 year ago
srcejon
23279d2f46
Fix gcc warnings about warning options
2 years ago
Jon Beniston
13c5bc2d9e
Disable some warnings when compiling with MSVC, so more important ones aren't hidden in the noise.
4 years ago
Jon Beniston
910f1bce1c
Fix c17 compilation but not having using namespace std before Windows includes, rather than defining _HAS_STD_BYTE=0
4 years ago
Jon Beniston
86b9b69def
Fix c++17 compilation with MSVC
4 years ago
f4exb
2d852c4495
Removed useless warnings inconsistent-missing-override
4 years ago
Jon Beniston
9052694ad5
Disable NAN and INF optimisations, as NANs are used in some code
5 years ago
f4exb
c5ece265e9
Do not enable interprocedural optimization for Mac. Fixes #807
6 years ago
Kacper Michajłow
e07c67aff6
Enable CMAKE_INTERPROCEDURAL_OPTIMIZATION
6 years ago
Kacper Michajłow
ce4f48b9bf
Add _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES for Windows
6 years ago
Kacper Michajłow
74d0c74830
Fixes for clang-cl build
6 years ago
f4exb
8a335aa277
Removed CMAKE_INTERPROCEDURAL_OPTIMIZATION. Fixes issue #716
6 years ago
Kacper Michajłow
c57b11cdab
CMake: Remove limited compiler detection and properly support compilers simulating MSVC
6 years ago
Kacper Michajłow
33ab785085
CMake: Split arch detection and compiler flags into separate files
6 years ago