Skip to content

Commit 04b52b4

Browse files
sbwtwlum1n0us
andauthored
Update wamr-compiler/CMakeLists.txt
Co-authored-by: liang.he <liang.he@intel.com>
1 parent d744642 commit 04b52b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wamr-compiler/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ endif ()
328328
#TODO: sync up WAMR_BUILD_SANITIZER in config_common.cmake
329329
# set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wconversion -Wsign-conversion")
330330
if (WAMR_BUILD_TARGET MATCHES "X86_.*" OR WAMR_BUILD_TARGET STREQUAL "AMD_64")
331-
if (CMAKE_C_COMPILER MATCHES ".*gcc.*" OR CMAKE_C_COMPILER_ID MATCHES ".*GNU")
331+
if (CMAKE_C_COMPILER_ID MATCHES ".*GNU")
332332
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mindirect-branch-register")
333333
# UNDEFINED BEHAVIOR, refer to https://en.cppreference.com/w/cpp/language/ub
334334
if(CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT WAMR_BUILD_JIT EQUAL 1)

0 commit comments

Comments
 (0)