Title: [290641] trunk
Revision
290641
Author
[email protected]
Date
2022-03-01 04:53:04 -0800 (Tue, 01 Mar 2022)

Log Message

[CMake] Build failure with libstdc++ (>= 6) when cross-compiling (fatal error: stdlib.h: No such file or directory)
https://bugs.webkit.org/show_bug.cgi?id=161697

Reviewed by Carlos Garcia Campos.

* Source/cmake/WebKitCompilerFlags.cmake: Set LANG=C in compiler invocation to ensure its
output is consistent and the checks are independent from the system locale configuration.

Modified Paths

Diff

Modified: trunk/ChangeLog (290640 => 290641)


--- trunk/ChangeLog	2022-03-01 11:24:59 UTC (rev 290640)
+++ trunk/ChangeLog	2022-03-01 12:53:04 UTC (rev 290641)
@@ -1,3 +1,13 @@
+2022-03-01  Adrian Perez de Castro  <[email protected]>
+
+        [CMake] Build failure with libstdc++ (>= 6) when cross-compiling (fatal error: stdlib.h: No such file or directory)
+        https://bugs.webkit.org/show_bug.cgi?id=161697
+
+        Reviewed by Carlos Garcia Campos.
+
+        * Source/cmake/WebKitCompilerFlags.cmake: Set LANG=C in compiler invocation to ensure its
+        output is consistent and the checks are independent from the system locale configuration.
+
 2022-03-01  Basuke Suzuki  <[email protected]>
 
         [CMake] Disabling ENABLE_WEBCORE is ignored when cmake configuration runs again.

Modified: trunk/Source/cmake/WebKitCompilerFlags.cmake (290640 => 290641)


--- trunk/Source/cmake/WebKitCompilerFlags.cmake	2022-03-01 11:24:59 UTC (rev 290640)
+++ trunk/Source/cmake/WebKitCompilerFlags.cmake	2022-03-01 12:53:04 UTC (rev 290641)
@@ -278,7 +278,7 @@
 macro(DETERMINE_GCC_SYSTEM_INCLUDE_DIRS _lang _compiler _flags _result)
     file(WRITE "${CMAKE_BINARY_DIR}/CMakeFiles/dummy" "\n")
     separate_arguments(_buildFlags UNIX_COMMAND "${_flags}")
-    execute_process(COMMAND ${_compiler} ${_buildFlags} -v -E -x ${_lang} -dD dummy
+    execute_process(COMMAND env LANG=C ${_compiler} ${_buildFlags} -v -E -x ${_lang} -dD dummy
                     WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/CMakeFiles OUTPUT_QUIET
                     ERROR_VARIABLE _gccOutput)
     file(REMOVE "${CMAKE_BINARY_DIR}/CMakeFiles/dummy")
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to