summaryrefslogtreecommitdiff
path: root/AK/Format.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-02-12 18:45:47 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-12 19:19:43 +0100
commitfeb66564d2bc0f78916c214f01aaa02e63e44afb (patch)
treea2fa32b047bd625491f4aef1d1d2b7ce2d3cb4ad /AK/Format.h
parentca69cab532ac83b4342efbbe201b51f81882e57a (diff)
downloadserenity-feb66564d2bc0f78916c214f01aaa02e63e44afb.zip
AK: Set DBGLN_NO_COMPILETIME_FORMAT_CHECK for any clang, not just < 12
This currently breaks the OSS-Fuzz build, and attempts to make it build with clang >= 12 were unsuccessful, so let's just disable dbgln() checks for any clang version.
Diffstat (limited to 'AK/Format.h')
-rw-r--r--AK/Format.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/AK/Format.h b/AK/Format.h
index ede7a2585a..ffa692cbf2 100644
--- a/AK/Format.h
+++ b/AK/Format.h
@@ -38,8 +38,9 @@
#endif
#ifndef DBGLN_NO_COMPILETIME_FORMAT_CHECK
-// Note: Clang 12 adds support for CTAD, this would fail with any version prior to that.
-# if defined(__clang__) && __clang_major__ < 12
+// Note: Clang 12 adds support for CTAD, but still fails to build the dbgln() checks, so they're disabled altogether for now.
+// See https://oss-fuzz-build-logs.storage.googleapis.com/log-79750138-f41e-4f39-8812-7c536f1d2e35.txt, for example.
+# if defined(__clang__)
# define DBGLN_NO_COMPILETIME_FORMAT_CHECK
# endif
#endif