!40790 [MS][LITE]Fix nnacl x86 build

Merge pull request !40790 from gongdaguo1/fix_nnacl_x86_b
This commit is contained in:
i-robot 2022-08-27 06:24:35 +00:00 committed by Gitee
commit 622c3195cf
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 5 additions and 0 deletions

View File

@ -64,6 +64,11 @@ if(APPLE OR PLATFORM_ARM32 OR PLATFORM_ARM64 OR PLATFORM_MCU)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fomit-frame-pointer -fstrict-aliasing \
-ffunction-sections -fdata-sections -ffast-math")
endif()
elseif(NOT MSVC)
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fomit-frame-pointer -fstrict-aliasing -ffunction-sections \
-fdata-sections")
endif()
endif()
if(NOT MSVC)