Skip to content

Commit 4700245

Browse files
author
Olivier Chafik
committed
Merge remote-tracking branch 'origin/master' into r1-toolcall
2 parents d52579a + a394039 commit 4700245

File tree

16 files changed

+918
-136
lines changed

16 files changed

+918
-136
lines changed

common/common.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -430,13 +430,13 @@ bool set_process_priority(enum ggml_sched_priority prio);
430430
//
431431

432432
#ifdef __GNUC__
433-
#ifdef __MINGW32__
434-
#define LLAMA_COMMON_ATTRIBUTE_FORMAT(...) __attribute__((format(gnu_printf, __VA_ARGS__)))
433+
# if defined(__MINGW32__) && !defined(__clang__)
434+
# define LLAMA_COMMON_ATTRIBUTE_FORMAT(...) __attribute__((format(gnu_printf, __VA_ARGS__)))
435+
# else
436+
# define LLAMA_COMMON_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
437+
# endif
435438
#else
436-
#define LLAMA_COMMON_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
437-
#endif
438-
#else
439-
#define LLAMA_COMMON_ATTRIBUTE_FORMAT(...)
439+
# define LLAMA_COMMON_ATTRIBUTE_FORMAT(...)
440440
#endif
441441

442442
LLAMA_COMMON_ATTRIBUTE_FORMAT(1, 2)

common/log.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "log.h"
22

3+
#include <chrono>
34
#include <condition_variable>
45
#include <cstdarg>
56
#include <cstdio>

common/log.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#ifndef __GNUC__
1717
# define LOG_ATTRIBUTE_FORMAT(...)
18-
#elif defined(__MINGW32__)
18+
#elif defined(__MINGW32__) && !defined(__clang__)
1919
# define LOG_ATTRIBUTE_FORMAT(...) __attribute__((format(gnu_printf, __VA_ARGS__)))
2020
#else
2121
# define LOG_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))

examples/imatrix/imatrix.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "log.h"
44
#include "llama.h"
55

6+
#include <chrono>
67
#include <cmath>
78
#include <cstdio>
89
#include <cstring>

examples/perplexity/perplexity.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "log.h"
44
#include "llama.h"
55

6+
#include <chrono>
67
#include <algorithm>
78
#include <array>
89
#include <atomic>
1 Byte
Binary file not shown.

examples/server/webui/src/components/ChatMessage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,12 @@ export default function ChatMessage({
254254
🔄 Regenerate
255255
</button>
256256
)}
257-
<CopyButton
258-
className="badge btn-mini show-on-hover mr-2"
259-
content={msg.content}
260-
/>
261257
</>
262258
)}
259+
<CopyButton
260+
className="badge btn-mini show-on-hover mr-2"
261+
content={msg.content}
262+
/>
263263
</div>
264264
)}
265265
</div>

ggml/include/ggml.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198

199199
#ifndef __GNUC__
200200
# define GGML_ATTRIBUTE_FORMAT(...)
201-
#elif defined(__MINGW32__)
201+
#elif defined(__MINGW32__) && !defined(__clang__)
202202
# define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(gnu_printf, __VA_ARGS__)))
203203
#else
204204
# define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))

0 commit comments

Comments
 (0)