From 77bb5383ae733282a65492a8d2e30b5342a78d58 Mon Sep 17 00:00:00 2001 From: parvathika <131966254+parvathika@users.noreply.github.com> Date: Mon, 2 Sep 2024 15:43:07 +0530 Subject: [PATCH] Create clang.cmake --- Tests/clang.cmake | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Tests/clang.cmake diff --git a/Tests/clang.cmake b/Tests/clang.cmake new file mode 100644 index 0000000..f5a97f5 --- /dev/null +++ b/Tests/clang.cmake @@ -0,0 +1,12 @@ +set(CMAKE_C_COMPILER "/usr/bin/clang") +set(CMAKE_CXX_COMPILER "/usr/bin/clang++") + +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=unused-command-line-argument") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=missing-braces") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=dangling-gsl") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=unused-const-variable") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=inconsistent-missing-override") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=unused-parameter") + +# clang Valgrind: debuginfo reader: ensure_valid failed +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -gdwarf-4")