Skip to content
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

add LTO, add O3 builds for Linux at Release #63

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "(amd64)|(AMD64)|(x86_64)")
endif (USE_NATIVE_ARCH)
endif ()

target_compile_features(neural_amp_modeler PUBLIC cxx_std_17)
target_compile_features(neural_amp_modeler PUBLIC cxx_std_20)

set_target_properties(neural_amp_modeler
PROPERTIES
Expand All @@ -46,6 +46,12 @@ set_target_properties(neural_amp_modeler
PREFIX ""
)

include(CheckIPOSupported)
check_ipo_supported(RESULT supported OUTPUT error)
if (supported)
set_property(TARGET neural_amp_modeler PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
endif()

# Platform

if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
Expand Down
Loading