Skip to content

Commit 9d37b86

Browse files
committed
Add GCC to compiler check
1 parent 4943bfd commit 9d37b86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set(GGML_SOURCES_BITNET ggml-bitnet-lut.cpp)
44

55
include_directories(3rdparty/llama.cpp/ggml/include)
66

7-
if ((NOT ${CMAKE_C_COMPILER_ID} MATCHES "Clang") OR
8-
(NOT ${CMAKE_CXX_COMPILER_ID} MATCHES "Clang"))
9-
message(FATAL_ERROR "Clang is required for Bitnet.cpp compilation")
10-
endif()
7+
if (NOT (CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "GNU") OR
8+
NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU"))
9+
message(FATAL_ERROR "Clang or GCC is required for Bitnet.cpp compilation")
10+
endif()

0 commit comments

Comments
 (0)