Skip to content

Commit b6e0bf7

Browse files
committed
fix for docker build
1 parent 6a9ab15 commit b6e0bf7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llama-cpp-sys-2/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ fn main() {
5454
.include("llama.cpp");
5555

5656
if ggml_cuda.get_compiler().is_like_msvc() {
57-
// someone with windows should check if this works @ cc++11
58-
// this case was added when we used c++17 (which was not what llama.cpp used)
5957
ggml_cuda.std("c++14");
6058
} else {
61-
ggml_cuda.std("c++11");
59+
ggml_cuda
60+
.flag("-std=c++11")
61+
.std("c++11");
6262
}
6363

6464
ggml.define("GGML_USE_CUBLAS", None);

0 commit comments

Comments
 (0)