Use -flto on Mac for release

This commit is contained in:
Adam Ierymenko 2019-08-28 07:45:49 -07:00
parent 6f9d1fc14c
commit 1977b9b764
No known key found for this signature in database
GPG Key ID: C8877CF2D7A5D7F3

View File

@ -77,12 +77,14 @@ else(WIN32)
$<$<CONFIG:DEBUG>:-O0>
$<$<CONFIG:RELEASE>:-Ofast>
$<$<CONFIG:RELEASE>:-fPIE>
$<$<CONFIG:RELEASE>:-flto>
$<$<CONFIG:RELWITHDEBINFO>:-Ofast>
$<$<CONFIG:RELWITHDEBINFO>:-fPIE>
$<$<CONFIG:RELWITHDEBINFO>:-g>
)
add_link_options(
-mmacosx-version-min=10.9
$<$<CONFIG:RELEASE>:-flto>
)
elseif (