Skip to content

Commit e0cbdea

Browse files
committed
Added exception note about GCC for LTO/IPO
1 parent d1b3646 commit e0cbdea

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ cmake_format(TARGET_NAME ${CMAKE_FILES})
357357

358358
There are two callable objects here, `link_time_optimization` which applies LTO/IPO for all following targets, and `target_link_time_optimization` which applies it to a specified target.
359359

360+
Doesn't work with GCC.
361+
360362
### Optional Arguments
361363

362364
#### REQUIRED

link-time-optimization.cmake

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
include(CheckIPOSupported)
1717

1818
# Checks for, and enables IPO/LTO for all following targets
19+
#
20+
# Running with GCC seems to have no effect
1921
# ~~~
2022
# Optional:
2123
# REQUIRED - If this is passed in, CMake configuration will fail with an error if LTO/IPO is not supported
@@ -46,6 +48,8 @@ macro(link_time_optimization)
4648
endmacro()
4749

4850
# Checks for, and enables IPO/LTO for the specified target
51+
#
52+
# Running with GCC seems to have no effect
4953
# ~~~
5054
# Required:
5155
# TARGET_NAME - Name of the target to generate code coverage for

0 commit comments

Comments
 (0)