Repository navigation
build(core): Enable link-time optimization for improved runtime performance. #1104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
4f7c145
2cbe104
a7e44bb
70d1733
26c861b
c1eecea
8cf4e33
81b6eed
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -21,6 +21,15 @@ if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) | |||||||||||||||||||||||||||||||||||||||
| set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE STRING "Choose the type of build." FORCE) | ||||||||||||||||||||||||||||||||||||||||
| endif() | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| if(CMAKE_BUILD_TYPE MATCHES "Release") | ||||||||||||||||||||||||||||||||||||||||
| include(CheckIPOSupported) | ||||||||||||||||||||||||||||||||||||||||
| check_ipo_supported(RESULT IPO_SUPPORTED OUTPUT IPO_CHECK_MSG) | ||||||||||||||||||||||||||||||||||||||||
|
LinZhihao-723 marked this conversation as resolved.
Resolved
|
||||||||||||||||||||||||||||||||||||||||
| if(IPO_SUPPORTED) | ||||||||||||||||||||||||||||||||||||||||
| message(STATUS "Link-time optimization enabled.") | ||||||||||||||||||||||||||||||||||||||||
| set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON) | ||||||||||||||||||||||||||||||||||||||||
| endif() | ||||||||||||||||||||||||||||||||||||||||
| else() | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Add the missing terminator right after the non-Release branch contents: @@
-else()
-
-set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+# Non-Release builds
+else()
+ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+endif() # CMAKE_BUILD_TYPE MATCHES "Release"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||
| set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||||||||||||||||||||||||||||||||||||||||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| # Set general compressor | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.