Changeset 278536 in webkit


Ignore:
Timestamp:
Jun 6, 2021 7:47:34 AM (3 years ago)
Author:
ddkilzer@apple.com
Message:

Unexport llvm coverage symbols to fix build
<https://webkit.org/b/226684>
<rdar://problem/78906691>

Reviewed by Darin Adler.

  • Scripts/check-for-weak-vtables-and-externals:
  • Revert change from r278444. That fixes errors when this script is run, but the Generate TAPI build phase for some projects still fails due to the new weak external symbols.
  • coverage/coverage.xcconfig:

(UNEXPORTED_SYMBOL_LDFLAGS_FOR_COVERAGE): Add.

  • Linker flags to unexport llvm symbols added by the compiler for coverage.

(OTHER_LDFLAGS):

  • Add $(UNEXPORTED_SYMBOL_LDFLAGS_FOR_COVERAGE) to list of switches to unexport the symbols during linking.
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r278521 r278536  
     12021-06-06  David Kilzer  <ddkilzer@apple.com>
     2
     3        Unexport llvm coverage symbols to fix build
     4        <https://webkit.org/b/226684>
     5        <rdar://problem/78906691>
     6
     7        Reviewed by Darin Adler.
     8
     9        * Scripts/check-for-weak-vtables-and-externals:
     10        - Revert change from r278444.  That fixes errors when
     11          this script is run, but the Generate TAPI build phase
     12          for some projects still fails due to the new weak
     13          external symbols.
     14        * coverage/coverage.xcconfig:
     15        (UNEXPORTED_SYMBOL_LDFLAGS_FOR_COVERAGE): Add.
     16        - Linker flags to unexport llvm symbols added by the
     17          compiler for coverage.
     18        (OTHER_LDFLAGS):
     19        - Add $(UNEXPORTED_SYMBOL_LDFLAGS_FOR_COVERAGE) to list
     20          of switches to unexport the symbols during linking.
     21
    1222021-06-04  Chris Dumez  <cdumez@apple.com>
    223
  • trunk/Tools/Scripts/check-for-weak-vtables-and-externals

    r278444 r278536  
    6969            next if /\b___asan/;
    7070
    71             # Ignore weak symbols present when compiling with coverage enabled.
    72             next if /\b(___llvm_profile_filename|___llvm_profile_raw_version|_lprofDirMode)/ && coverageIsEnabled();
    73 
    7471            if (/weak external vtable for (.*)$/) {
    7572                push @weakVTableClasses, $1;
  • trunk/Tools/coverage/coverage.xcconfig

    r278444 r278536  
     1# Unexport weak external symbols from llvm coverage.
     2UNEXPORTED_SYMBOL_LDFLAGS_FOR_COVERAGE = -Wl,-unexported_symbol -Wl,___llvm_profile_filename -Wl,-unexported_symbol -Wl,___llvm_profile_raw_version -Wl,-unexported_symbol -Wl,_lprofDirMode;
     3
    14OTHER_CFLAGS = $(inherited) -fprofile-instr-generate -fcoverage-mapping;
    2 OTHER_LDFLAGS = $(inherited) -fprofile-instr-generate;
     5OTHER_LDFLAGS = $(inherited) -fprofile-instr-generate $(UNEXPORTED_SYMBOL_LDFLAGS_FOR_COVERAGE);
Note: See TracChangeset for help on using the changeset viewer.