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 67e530c commit b47cf96Copy full SHA for b47cf96
1 file changed
tools/ui/CMakeLists.txt
@@ -36,7 +36,14 @@ set(UI_CPP "${CMAKE_CURRENT_BINARY_DIR}/ui.cpp")
36
set(UI_H "${CMAKE_CURRENT_BINARY_DIR}/ui.h")
37
38
if(CMAKE_CROSSCOMPILING)
39
- find_program(HOST_CXX_COMPILER NAMES g++ clang++ NO_CMAKE_FIND_ROOT_PATH)
+ find_program(HOST_CXX_COMPILER
40
+ NAMES c++ g++ clang++
41
+ PATHS /usr/local/bin /usr/bin /bin
42
+ NO_DEFAULT_PATH
43
+ )
44
+ if(NOT HOST_CXX_COMPILER)
45
+ find_program(HOST_CXX_COMPILER NAMES c++ g++ clang++ NO_CMAKE_FIND_ROOT_PATH)
46
+ endif()
47
if(NOT HOST_CXX_COMPILER)
48
message(FATAL_ERROR "UI: no host C++ compiler (g++/clang++) found to build llama-ui-embed; set -DHOST_CXX_COMPILER=<path>")
49
endif()
0 commit comments