mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-05 20:13:29 -04:00
only try to use profiles if the file exists
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL")
|
||||
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/ConnectionServer.profdata)
|
||||
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL" AND EXISTS "${PROJECT_SOURCE_DIR}/src/linux/ConnectionServer.profdata")
|
||||
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/ConnectionServer.profdata)
|
||||
endif()
|
||||
|
||||
set(SHARED_SOURCES
|
||||
|
||||
Reference in New Issue
Block a user