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

Changeset 276129 in webkit


Ignore:
Timestamp:
Apr 16, 2021, 2:43:04 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[CMake] UBSan build fixes
https://bugs.webkit.org/show_bug.cgi?id=224536

Patch by Philippe Normand <pnormand@igalia.com> on 2021-04-16
Reviewed by Adrian Perez de Castro.

Synchronize UBSan compiler flags with the ones defined in ubsan.xcconfig.

  • Source/cmake/WebKitCompilerFlags.cmake:
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r276070 r276129  
     12021-04-16  Philippe Normand  <pnormand@igalia.com>
     2
     3        [CMake] UBSan build fixes
     4        https://bugs.webkit.org/show_bug.cgi?id=224536
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        Synchronize UBSan compiler flags with the ones defined in ubsan.xcconfig.
     9
     10        * Source/cmake/WebKitCompilerFlags.cmake:
     11
    1122021-04-15  Don Olmstead  <don.olmstead@sony.com>
    213
  • trunk/Source/cmake/WebKitCompilerFlags.cmake

    r274476 r276129  
    202202
    203203            elseif (${SANITIZER} MATCHES "undefined")
    204                 WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS("-fno-omit-frame-pointer -fno-optimize-sibling-calls")
    205                 # -fsanitize=vptr is incompatible with -fno-rtti
    206                 set(SANITIZER_COMPILER_FLAGS "-fsanitize=undefined -frtti ${SANITIZER_COMPILER_FLAGS}")
     204                # Please keep these options synchronized with Tools/sanitizer/ubsan.xcconfig
     205                WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS("-fno-omit-frame-pointer -fno-delete-null-pointer-checks -fno-optimize-sibling-calls")
     206                # -fsanitize=vptr is disabled because incompatible with -fno-rtti
     207                set(SANITIZER_COMPILER_FLAGS "-fsanitize=undefined -fno-sanitize=vptr ${SANITIZER_COMPILER_FLAGS}")
    207208                set(SANITIZER_LINK_FLAGS "-fsanitize=undefined ${SANITIZER_LINK_FLAGS}")
    208209
Note: See TracChangeset for help on using the changeset viewer.