Skip to content

Commit

Permalink
Perform LTO for relwithdebinfo builds
Browse files Browse the repository at this point in the history
  • Loading branch information
expipiplus1 committed Dec 6, 2024
1 parent f95705f commit 1ac6a99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/SlangTarget.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ function(slang_add_target dir type)
# See: https://cmake.org/cmake/help/latest/prop_tgt/INTERPROCEDURAL_OPTIMIZATION.html
set_target_properties(
${target}
PROPERTIES INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE
PROPERTIES
INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE
INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO TRUE
)

#
Expand Down

0 comments on commit 1ac6a99

Please sign in to comment.