We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4943bfd commit 9d37b86Copy full SHA for 9d37b86
src/CMakeLists.txt
@@ -4,7 +4,7 @@ set(GGML_SOURCES_BITNET ggml-bitnet-lut.cpp)
4
5
include_directories(3rdparty/llama.cpp/ggml/include)
6
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()
+if (NOT (CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "GNU") OR
+ NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU"))
+ message(FATAL_ERROR "Clang or GCC is required for Bitnet.cpp compilation")
+endif()
0 commit comments