mcst-linux-kernel/patches-2024.06.26/webkitgtk-2.40.0/0008-Allow-build-with-optim...

14 lines
674 B
Diff

Index: webkit2gtk-2.40.0/Source/WTF/wtf/Compiler.h
===================================================================
--- webkit2gtk-2.40.0.orig/Source/WTF/wtf/Compiler.h
+++ webkit2gtk-2.40.0/Source/WTF/wtf/Compiler.h
@@ -99,7 +99,7 @@
#endif /* COMPILER(GCC) */
-#if COMPILER(GCC_COMPATIBLE) && defined(NDEBUG) && !defined(__OPTIMIZE__) && !defined(RELEASE_WITHOUT_OPTIMIZATIONS)
+#if COMPILER(GCC_COMPATIBLE) && defined(NDEBUG) && !defined(__OPTIMIZE__) && !defined(RELEASE_WITHOUT_OPTIMIZATIONS) && !defined(__LCC__)
#error "Building release without compiler optimizations: WebKit will be slow. Set -DRELEASE_WITHOUT_OPTIMIZATIONS if this is intended."
#endif