Skip to content

Commit de917a8

Browse files
a-downingnopperl
authored andcommitted
Update LOG_IMPL and LOG_TEE_IMPL (ggml-org#7029)
ROCm clang defines _MSC_VER which results in the wrong implementation of LOG_IMPL and LOG_TEE_IMPL being compiled. This fixes ggml-org#6972
1 parent 619c1a2 commit de917a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/log.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ inline std::string log_filename_generator_impl(LogTriState multilog, const std::
234234
// INTERNAL, DO NOT USE
235235
// USE LOG() INSTEAD
236236
//
237-
#if !defined(_MSC_VER) || defined(__INTEL_LLVM_COMPILER)
237+
#if !defined(_MSC_VER) || defined(__INTEL_LLVM_COMPILER) || defined(__clang__)
238238
#define LOG_IMPL(str, ...) \
239239
do { \
240240
if (LOG_TARGET != nullptr) \
@@ -257,7 +257,7 @@ inline std::string log_filename_generator_impl(LogTriState multilog, const std::
257257
// INTERNAL, DO NOT USE
258258
// USE LOG_TEE() INSTEAD
259259
//
260-
#if !defined(_MSC_VER) || defined(__INTEL_LLVM_COMPILER)
260+
#if !defined(_MSC_VER) || defined(__INTEL_LLVM_COMPILER) || defined(__clang__)
261261
#define LOG_TEE_IMPL(str, ...) \
262262
do { \
263263
if (LOG_TARGET != nullptr) \

0 commit comments

Comments
 (0)