!19909 [MS][LITE][r1.3] evade an random convert error caused by compile param

Merge pull request !19909 from XianglongZeng/r1.3_
This commit is contained in:
i-robot 2021-07-10 08:55:03 +00:00 committed by Gitee
commit bcaafbf68d
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ if(PLATFORM_ARM32 OR PLATFORM_ARM64)
else()
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fomit-frame-pointer -fstrict-aliasing -ffunction-sections \
-fdata-sections -ffast-math -fno-rtti -fno-exceptions")
-fdata-sections -ffast-math -fno-rtti")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fomit-frame-pointer -fstrict-aliasing -ffunction-sections \
-fdata-sections -ffast-math -fno-rtti -fno-exceptions")
-fdata-sections -ffast-math -fno-rtti")
endif()
endif()