Commit 08b3b7be authored by norvell's avatar norvell
Browse files

Merge branch...

Merge branch 'float-1537-make-clang-the-default-compiler-in-makefile-and-cmakelists-txt-clang-coverage' into 'float-1537-make-clang-the-default-compiler-in-makefile-and-cmakelists-txt'

Updates to run coverage with clang by default instead of gcc

See merge request !2558
parents e3e30663 c6be4b9e
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ if(UNIX)
  # set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")

  # set C compiler
  if(GCC OR GCOV)
  if(GCC)
    find_program(cc NAMES gcc-13 gcc REQUIRED)
  else()
    find_program(cc NAMES clang-18 clang REQUIRED)
+0 −1
Original line number Diff line number Diff line
@@ -115,7 +115,6 @@ LDFLAGS += -g3
endif

ifeq "$(GCOV)" "1"
CC       = gcc
CFLAGS  += -fprofile-arcs -ftest-coverage -fprofile-update=atomic
LDFLAGS += -fprofile-arcs -ftest-coverage -fprofile-update=atomic
endif