Skip to content

Commit 3850aff

Browse files
authored
fix(ci): use C++ compiler for Docker builds (#2304)
1 parent e807092 commit 3850aff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ if (LLAMA_BUILD)
179179
# The Python package only ships mtmd as a shared library.
180180
# Upstream mtmd also defines CLI compatibility wrappers, but those are
181181
# not installed here and can fail to link in minimal Docker toolchains.
182-
foreach(target llama-llava-cli llama-gemma3-cli llama-minicpmv-cli llama-qwen2vl-cli llama-mtmd-debug)
182+
foreach(target llama-llava-cli llama-gemma3-cli llama-minicpmv-cli llama-qwen2vl-cli llama-mtmd-cli llama-mtmd-debug)
183183
if (TARGET ${target})
184184
set_target_properties(${target} PROPERTIES EXCLUDE_FROM_ALL TRUE)
185185
endif()

docker/simple/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RUN python3 -m pip install --upgrade pip
2727

2828
RUN python3 -m pip install --upgrade pip pytest cmake scikit-build setuptools fastapi uvicorn sse-starlette pydantic-settings starlette-context
2929

30-
RUN CMAKE_ARGS="${CMAKE_ARGS}" pip install . --verbose
30+
RUN CC=gcc CXX=g++ CMAKE_ARGS="${CMAKE_ARGS}" pip install . --verbose
3131

3232
# Set environment variable for the host
3333
ENV HOST=0.0.0.0

0 commit comments

Comments
 (0)