diff --git a/CMakeLists.txt b/CMakeLists.txt index aaaafd529ec30b0f7e3c98c9116319a7bc86576e..78b748c71b260496ae48d47853413f837223e9a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/Makefile b/Makefile index 15002c5ece528d7ad5ce8172ed240f9cd20651bb..42dcd8dd0d04e96b3e62126de1d1e0f6aadda13c 100644 --- a/Makefile +++ b/Makefile @@ -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