File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 16
16
endif ()
17
17
18
18
execute_process (
19
- COMMAND bash "-c" "read dart_sdk < <(type -p dart) && echo $\{ dart_sdk%/*\} /cache/dart-sdk | xargs"
19
+ COMMAND bash "-c" "read dart_sdk < <(type -p dart) && echo $\{ dart_sdk%/*\} /cache/dart-sdk/include | xargs"
20
20
OUTPUT_VARIABLE DART_SDK
21
21
)
22
22
string (REGEX REPLACE "\n $" "" DART_SDK "${DART_SDK} " )
@@ -201,10 +201,9 @@ target_include_directories(kraken PRIVATE
201
201
target_link_libraries (kraken PRIVATE ${BRIDGE_LINK_LIBS} )
202
202
203
203
if (${CMAKE_BUILD_TYPE} STREQUAL "release" OR ${CMAKE_BUILD_TYPE} STREQUAL "relwithdebinfo" )
204
- set (CMAKE_C_FLAGS -flto)
205
204
## http://ptspts.blogspot.com/2013/12/how-to-make-smaller-c-and-c-binaries.html
206
205
### remove dynamic_cast and exceptions
207
- target_compile_options (kraken PRIVATE -fno-exceptions -fvisibility=hidden -flto )
206
+ target_compile_options (kraken PRIVATE -fno-exceptions -fvisibility=hidden)
208
207
else ()
209
208
### remove dynamic_cast and exceptions
210
209
target_compile_options (kraken PRIVATE -fno-exceptions)
You can’t perform that action at this time.
0 commit comments