From 054fd1afebdd899f28d87eef1c5efd917dd4a61f Mon Sep 17 00:00:00 2001 From: Yuan Shuai Date: Thu, 12 Mar 2020 00:23:28 +0800 Subject: [PATCH] fix clang compile opencl. test=develop (#3153) --- cmake/cross_compiling/postproject.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/cross_compiling/postproject.cmake b/cmake/cross_compiling/postproject.cmake index 89659b1e5f..a229ab3cfc 100644 --- a/cmake/cross_compiling/postproject.cmake +++ b/cmake/cross_compiling/postproject.cmake @@ -59,7 +59,7 @@ function(check_linker_flag) endfunction() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") if (LITE_ON_TINY_PUBLISH) - if(NOT LITE_WITH_PYTHON) + if((NOT LITE_WITH_PYTHON) AND (NOT LITE_WITH_OPENCL)) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions") endif() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffast-math -Ofast -Os -fomit-frame-pointer -fno-asynchronous-unwind-tables -fno-unwind-tables") -- GitLab