summaryrefslogtreecommitdiff
path: root/common/log.h
diff options
context:
space:
mode:
authorNeo Zhang Jianyu <jianyu.zhang@intel.com>2024-03-25 15:52:41 +0800
committerGitHub <noreply@github.com>2024-03-25 15:52:41 +0800
commit95ad616cddda50273e955bfe192328acd9aa4896 (patch)
tree76fdc8f25e1264278acfefb36b9a7d435ffc83ff /common/log.h
parent64e7b47c6986221f2ff5c57c89dfc018bb0e9e6d (diff)
[SYCL] fix SYCL backend build on windows is break by LOG() error (#6290)
* fix LOG() error for SYCL, enhance erro check by CI * rollback to bash * add newline at end of file
Diffstat (limited to 'common/log.h')
-rw-r--r--common/log.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/log.h b/common/log.h
index 48d21e43..e4edcac7 100644
--- a/common/log.h
+++ b/common/log.h
@@ -234,7 +234,7 @@ inline std::string log_filename_generator_impl(LogTriState multilog, const std::
// INTERNAL, DO NOT USE
// USE LOG() INSTEAD
//
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) or defined(__INTEL_LLVM_COMPILER)
#define LOG_IMPL(str, ...) \
do { \
if (LOG_TARGET != nullptr) \
@@ -257,7 +257,7 @@ inline std::string log_filename_generator_impl(LogTriState multilog, const std::
// INTERNAL, DO NOT USE
// USE LOG_TEE() INSTEAD
//
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) or defined(__INTEL_LLVM_COMPILER)
#define LOG_TEE_IMPL(str, ...) \
do { \
if (LOG_TARGET != nullptr) \