⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 185823 in webkit


Ignore:
Timestamp:
Jun 22, 2015, 4:55:45 AM (11 years ago)
Author:
zandobersek@gmail.com
Message:

[CMake] Add support for building with various sanitizer tools
https://bugs.webkit.org/show_bug.cgi?id=131941

Reviewed by Martin Robinson.

  • Source/PlatformGTK.cmake: Don't generate any documentation

when compiling with sanitizers enabled.

  • Source/cmake/OptionsCommon.cmake: Allow linking with

undefined symbols when compiling with sanitizers enabled.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r185805 r185823  
     12015-06-22  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [CMake] Add support for building with various sanitizer tools
     4        https://bugs.webkit.org/show_bug.cgi?id=131941
     5
     6        Reviewed by Martin Robinson.
     7
     8        * Source/PlatformGTK.cmake: Don't generate any documentation
     9        when compiling with sanitizers enabled.
     10        * Source/cmake/OptionsCommon.cmake: Allow linking with
     11        undefined symbols when compiling with sanitizers enabled.
     12
    1132015-06-21  Philip Chimento  <philip.chimento@gmail.com>
    214
  • trunk/Source/PlatformGTK.cmake

    r179111 r185823  
    3535if (ENABLE_GTKDOC)
    3636    add_custom_target(gtkdoc ALL DEPENDS "${CMAKE_BINARY_DIR}/docs-build.stamp")
    37 else ()
     37elseif (NOT ENABLED_COMPILER_SANITIZERS)
    3838    add_custom_target(gtkdoc DEPENDS "${CMAKE_BINARY_DIR}/docs-build.stamp")
    3939
  • trunk/Source/cmake/OptionsCommon.cmake

    r183741 r185823  
    105105endif ()
    106106
    107 if (UNIX AND NOT APPLE)
     107string(REGEX MATCHALL "-fsanitize=[^ ]*" ENABLED_COMPILER_SANITIZERS ${CMAKE_CXX_FLAGS})
     108
     109if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS)
    108110    set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
    109111endif ()
Note: See TracChangeset for help on using the changeset viewer.