Remove -fno-builtin-memcmp
authorJuan Ramos <juan@lunarg.com>
Sun, 19 Nov 2023 22:25:47 +0000 (15:25 -0700)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Sun, 19 Nov 2023 23:04:07 +0000 (16:04 -0700)
CMakeLists.txt
scripts/qnx/common.mk

index 62c99c86c1b6b6e10999db03214f25d8dcc2535e..48ff3cd93f055481d6e39f96fa7beb816be6c8cc 100644 (file)
@@ -180,9 +180,9 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang
 
     # need to prepend /clang: to compiler arguments when using clang-cl
     if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND "${CMAKE_CXX_SIMULATE_ID}" MATCHES "MSVC")
-        target_compile_options(loader_common_options INTERFACE /clang:-fno-strict-aliasing /clang:-fno-builtin-memcmp)
+        target_compile_options(loader_common_options INTERFACE /clang:-fno-strict-aliasing)
     else()
-        target_compile_options(loader_common_options INTERFACE -fno-strict-aliasing -fno-builtin-memcmp)
+        target_compile_options(loader_common_options INTERFACE -fno-strict-aliasing)
     endif()
 
     if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
index f226f64985bcad66dbfbf210ea4a459e9efb61ed..bd10e71eb3696a8428e930c03e45cf6eb7961e65 100644 (file)
@@ -32,7 +32,7 @@ include $(MKFILES_ROOT)/qtargets.mk
 
 CCFLAGS += -DVK_USE_PLATFORM_SCREEN_QNX=1 -DVK_ENABLE_BETA_EXTENSIONS
 CCFLAGS += -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
-CCFLAGS += -fno-strict-aliasing -fno-builtin-memcmp -Wno-stringop-truncation
+CCFLAGS += -fno-strict-aliasing -Wno-stringop-truncation
 CCFLAGS += -Wno-stringop-overflow -fvisibility=hidden
 CCFLAGS += -Wpointer-arith -fPIC