Title: [232062] trunk
Revision
232062
Author
[email protected]
Date
2018-05-22 06:20:03 -0700 (Tue, 22 May 2018)

Log Message

Unreviewed, rolling out r231843.

Broke cross build

Reverted changeset:

"[CMake] Properly detect compiler flags, needed libs, and
fallbacks for usage of 64-bit atomic operations"
https://bugs.webkit.org/show_bug.cgi?id=182622
https://trac.webkit.org/changeset/231843

Modified Paths

Diff

Modified: trunk/ChangeLog (232061 => 232062)


--- trunk/ChangeLog	2018-05-22 11:40:13 UTC (rev 232061)
+++ trunk/ChangeLog	2018-05-22 13:20:03 UTC (rev 232062)
@@ -1,3 +1,16 @@
+2018-05-22  Michael Catanzaro  <[email protected]>
+
+        Unreviewed, rolling out r231843.
+
+        Broke cross build
+
+        Reverted changeset:
+
+        "[CMake] Properly detect compiler flags, needed libs, and
+        fallbacks for usage of 64-bit atomic operations"
+        https://bugs.webkit.org/show_bug.cgi?id=182622
+        https://trac.webkit.org/changeset/231843
+
 2018-05-21  Fujii Hironori  <[email protected]>
 
         [WinCairo] Enable WebKit build by default

Modified: trunk/Source/_javascript_Core/CMakeLists.txt (232061 => 232062)


--- trunk/Source/_javascript_Core/CMakeLists.txt	2018-05-22 11:40:13 UTC (rev 232061)
+++ trunk/Source/_javascript_Core/CMakeLists.txt	2018-05-22 13:20:03 UTC (rev 232062)
@@ -124,8 +124,14 @@
     list(APPEND _javascript_Core_LIBRARIES capstone)
 endif ()
 
-if (ATOMIC_INT64_REQUIRES_LIBATOMIC)
-    list(APPEND _javascript_Core_LIBRARIES atomic)
+# Since r228149, on MIPS we need to link with -latomic, because
+# __atomic_fetch_add_8 is not available as a compiler intrinsic. It is
+# available on other platforms (including 32-bit Arm), so the link with
+# libatomic is only neede on MIPS.
+if (WTF_CPU_MIPS)
+    list(APPEND _javascript_Core_LIBRARIES
+        -latomic
+    )
 endif ()
 
 set(_javascript_Core_SCRIPTS_SOURCES_DIR "${_javascript_CORE_DIR}/Scripts")

Modified: trunk/Source/_javascript_Core/ChangeLog (232061 => 232062)


--- trunk/Source/_javascript_Core/ChangeLog	2018-05-22 11:40:13 UTC (rev 232061)
+++ trunk/Source/_javascript_Core/ChangeLog	2018-05-22 13:20:03 UTC (rev 232062)
@@ -1,3 +1,16 @@
+2018-05-22  Michael Catanzaro  <[email protected]>
+
+        Unreviewed, rolling out r231843.
+
+        Broke cross build
+
+        Reverted changeset:
+
+        "[CMake] Properly detect compiler flags, needed libs, and
+        fallbacks for usage of 64-bit atomic operations"
+        https://bugs.webkit.org/show_bug.cgi?id=182622
+        https://trac.webkit.org/changeset/231843
+
 2018-05-21  Yusuke Suzuki  <[email protected]>
 
         Use more C++17

Modified: trunk/Source/WebKit/CMakeLists.txt (232061 => 232062)


--- trunk/Source/WebKit/CMakeLists.txt	2018-05-22 11:40:13 UTC (rev 232061)
+++ trunk/Source/WebKit/CMakeLists.txt	2018-05-22 13:20:03 UTC (rev 232062)
@@ -810,8 +810,22 @@
     set(_javascript_Core_SCRIPTS_DIR "${FORWARDING_HEADERS_DIR}/_javascript_Core/Scripts")
 endif ()
 
-if (ATOMIC_INT64_REQUIRES_LIBATOMIC)
-    list(APPEND WebKit_LIBRARIES PRIVATE atomic)
+if (COMPILER_IS_GCC_OR_CLANG)
+    set(ATOMIC_TEST_SOURCE
+    "
+        #include <atomic>
+        int main() { std::atomic<int64_t> i(0); i++; return 0; }
+    "
+    )
+    check_cxx_source_compiles("${ATOMIC_TEST_SOURCE}" ATOMIC_INT64_IS_BUILTIN)
+    if (NOT ATOMIC_INT64_IS_BUILTIN)
+        set(CMAKE_REQUIRED_LIBRARIES atomic)
+        check_cxx_source_compiles("${ATOMIC_TEST_SOURCE}" ATOMIC_INT64_REQUIRES_LIBATOMIC)
+        if (ATOMIC_INT64_REQUIRES_LIBATOMIC)
+            list(APPEND WebKit_LIBRARIES PRIVATE atomic)
+        endif ()
+        unset(CMAKE_REQUIRED_LIBRARIES)
+    endif ()
 endif ()
 
 if (UNIX)

Modified: trunk/Source/WebKit/ChangeLog (232061 => 232062)


--- trunk/Source/WebKit/ChangeLog	2018-05-22 11:40:13 UTC (rev 232061)
+++ trunk/Source/WebKit/ChangeLog	2018-05-22 13:20:03 UTC (rev 232062)
@@ -1,3 +1,16 @@
+2018-05-22  Michael Catanzaro  <[email protected]>
+
+        Unreviewed, rolling out r231843.
+
+        Broke cross build
+
+        Reverted changeset:
+
+        "[CMake] Properly detect compiler flags, needed libs, and
+        fallbacks for usage of 64-bit atomic operations"
+        https://bugs.webkit.org/show_bug.cgi?id=182622
+        https://trac.webkit.org/changeset/231843
+
 2018-05-22  Carlos Garcia Campos  <[email protected]>
 
         Crash when loading a SVG image

Modified: trunk/Source/cmake/OptionsGTK.cmake (232061 => 232062)


--- trunk/Source/cmake/OptionsGTK.cmake	2018-05-22 11:40:13 UTC (rev 232061)
+++ trunk/Source/cmake/OptionsGTK.cmake	2018-05-22 13:20:03 UTC (rev 232062)
@@ -17,8 +17,6 @@
 set(INTROSPECTION_INSTALL_GIRDIR "${CMAKE_INSTALL_FULL_DATADIR}/gir-1.0")
 set(INTROSPECTION_INSTALL_TYPELIBDIR "${LIB_INSTALL_DIR}/girepository-1.0")
 
-set(THREADS_PREFER_PTHREAD_FLAG ON)
-
 find_package(Cairo 1.10.2 REQUIRED)
 find_package(Fontconfig 2.8.0 REQUIRED)
 find_package(Freetype2 2.4.2 REQUIRED)

Modified: trunk/Source/cmake/OptionsJSCOnly.cmake (232061 => 232062)


--- trunk/Source/cmake/OptionsJSCOnly.cmake	2018-05-22 11:40:13 UTC (rev 232061)
+++ trunk/Source/cmake/OptionsJSCOnly.cmake	2018-05-22 13:20:03 UTC (rev 232062)
@@ -1,4 +1,3 @@
-set(THREADS_PREFER_PTHREAD_FLAG ON)
 find_package(Threads REQUIRED)
 
 if (MSVC)

Modified: trunk/Source/cmake/OptionsWPE.cmake (232061 => 232062)


--- trunk/Source/cmake/OptionsWPE.cmake	2018-05-22 11:40:13 UTC (rev 232061)
+++ trunk/Source/cmake/OptionsWPE.cmake	2018-05-22 13:20:03 UTC (rev 232062)
@@ -12,8 +12,6 @@
 set(EXEC_INSTALL_DIR "${CMAKE_INSTALL_FULL_BINDIR}" CACHE PATH "Absolute path to executable installation directory")
 set(LIBEXEC_INSTALL_DIR "${CMAKE_INSTALL_FULL_LIBEXECDIR}/wpe-webkit-${WPE_API_VERSION}" CACHE PATH "Absolute path to install executables executed by the library")
 
-set(THREADS_PREFER_PTHREAD_FLAG ON)
-
 WEBKIT_OPTION_BEGIN()
 
 include(GStreamerDefinitions)

Modified: trunk/Source/cmake/WebKitCompilerFlags.cmake (232061 => 232062)


--- trunk/Source/cmake/WebKitCompilerFlags.cmake	2018-05-22 11:40:13 UTC (rev 232061)
+++ trunk/Source/cmake/WebKitCompilerFlags.cmake	2018-05-22 13:20:03 UTC (rev 232062)
@@ -230,16 +230,3 @@
    DETERMINE_GCC_SYSTEM_INCLUDE_DIRS("c++" "${CMAKE_CXX_COMPILER}" "${CMAKE_CXX_FLAGS}" SYSTEM_INCLUDE_DIRS)
    set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES} ${SYSTEM_INCLUDE_DIRS})
 endif ()
-
-if (COMPILER_IS_GCC_OR_CLANG)
-    set(ATOMIC_TEST_SOURCE "
-        #include <atomic>
-        int main() { std::atomic<int64_t> i(0); i++; return 0; }
-    ")
-    check_cxx_source_compiles("${ATOMIC_TEST_SOURCE}" ATOMIC_INT64_IS_BUILTIN)
-    if (NOT ATOMIC_INT64_IS_BUILTIN)
-        set(CMAKE_REQUIRED_LIBRARIES atomic)
-        check_cxx_source_compiles("${ATOMIC_TEST_SOURCE}" ATOMIC_INT64_REQUIRES_LIBATOMIC)
-        unset(CMAKE_REQUIRED_LIBRARIES)
-    endif ()
-endif ()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to