Skip to content

Commit 1cec9f1

Browse files
author
zhouwg
committed
build: build llama.cpp with cygwin on Windows, without complex IDE
1 parent 074c4fd commit 1cec9f1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

common/console.cpp

100644100755
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ namespace console {
241241
(void)codepoint;
242242
return 1;
243243
#else
244-
return wcwidth(codepoint);
244+
//return wcwidth(codepoint);
245+
(void)codepoint;
246+
return 1;
245247
#endif
246248
}
247249

src/llama-mmap.cpp

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,9 @@ struct llama_mlock::impl {
482482
suggest = false;
483483
#else
484484
struct rlimit lock_limit;
485-
if (suggest && getrlimit(RLIMIT_MEMLOCK, &lock_limit)) {
486-
suggest = false;
487-
}
485+
//if (suggest && getrlimit(RLIMIT_MEMLOCK, &lock_limit)) {
486+
// suggest = false;
487+
//}
488488
if (suggest && (lock_limit.rlim_max > lock_limit.rlim_cur + size)) {
489489
suggest = false;
490490
}

0 commit comments

Comments
 (0)