diff --git a/sdk/cmake/gcc.cmake b/sdk/cmake/gcc.cmake index f542d34ef19..298a867bb45 100644 --- a/sdk/cmake/gcc.cmake +++ b/sdk/cmake/gcc.cmake @@ -480,8 +480,8 @@ add_compile_options("$<$:$:$>,-fexceptions,-fno-exceptions>>") -# G++ shipped with ROSBE uses sjlj exceptions. Tell Clang it is so -if (CLANG) +# G++ shipped with ROSBE uses sjlj exceptions on i386. Tell Clang it is so +if (CLANG AND (ARCH STREQUAL "i386")) add_compile_options("$<$,$>>:-fsjlj-exceptions>") endif()