[CMake] Pass -pipe to compilers that support it
https://bugs.webkit.org/show_bug.cgi?id=235641
Reviewed by Darin Adler.
* Source/cmake/WebKitCompilerFlags.cmake: Add -pipe to compiler options where supported.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@288624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/ChangeLog b/ChangeLog
index 8d333f4..df94055 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2022-01-26 Adrian Perez de Castro <aperez@igalia.com>
+
+ [CMake] Pass -pipe to compilers that support it
+ https://bugs.webkit.org/show_bug.cgi?id=235641
+
+ Reviewed by Darin Adler.
+
+ * Source/cmake/WebKitCompilerFlags.cmake: Add -pipe to compiler options where supported.
+
2022-01-25 Myles C. Maxfield <mmaxfield@apple.com>
Add another test for locale-specific shaping
diff --git a/Source/cmake/WebKitCompilerFlags.cmake b/Source/cmake/WebKitCompilerFlags.cmake
index c4c7fb4..20abbf3 100644
--- a/Source/cmake/WebKitCompilerFlags.cmake
+++ b/Source/cmake/WebKitCompilerFlags.cmake
@@ -164,6 +164,10 @@
message(FATAL_ERROR "SSE2 support is required to compile WebKit")
endif ()
endif ()
+
+ # Makes builds faster. The GCC manual warns about the possibility that the assembler being
+ # used may not support input from a pipe, but in practice the toolchains we support all do.
+ WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-pipe)
endif ()
if (COMPILER_IS_GCC_OR_CLANG AND NOT MSVC)