diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-03-09 21:49:43 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-03-09 21:49:43 +0800 |
| commit | 99ac5b94e40b1b95be6ebc061f6dcee4d4dcfed5 (patch) | |
| tree | a5752bac23c6c1cbfb23130e2e51c1e1155723ec /raytracing/etc/lto.cmake | |
| parent | 82be1151b5c9e49ccba238ec6e4b18a2cb8fb23d (diff) | |
| download | rcc-project-99ac5b94e40b1b95be6ebc061f6dcee4d4dcfed5.tar.gz rcc-project-99ac5b94e40b1b95be6ebc061f6dcee4d4dcfed5.tar.xz | |
Establish a well-structured modern C++ project architecture
Focus on code quality: Treat strict warnings as errors, memory checks with Sanitizers, Clang formatting and static analysis
Performance optimization: LTO, ccache
Diffstat (limited to 'raytracing/etc/lto.cmake')
| -rw-r--r-- | raytracing/etc/lto.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/raytracing/etc/lto.cmake b/raytracing/etc/lto.cmake new file mode 100644 index 0000000..517ec14 --- /dev/null +++ b/raytracing/etc/lto.cmake @@ -0,0 +1,8 @@ +include(CheckIPOSupported) +check_ipo_supported(RESULT ipo_supported OUTPUT error) +if(ipo_supported) + message(STATUS "IPO / LTO supported and enabled.") + set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) +else() + message(STATUS "IPO / LTO not supported: <${error}>") +endif()
\ No newline at end of file |
