Changeset 278536 in webkit
- Timestamp:
- Jun 6, 2021 7:47:34 AM (3 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r278521 r278536 1 2021-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 1 22 2021-06-04 Chris Dumez <cdumez@apple.com> 2 23 -
trunk/Tools/Scripts/check-for-weak-vtables-and-externals
r278444 r278536 69 69 next if /\b___asan/; 70 70 71 # Ignore weak symbols present when compiling with coverage enabled.72 next if /\b(___llvm_profile_filename|___llvm_profile_raw_version|_lprofDirMode)/ && coverageIsEnabled();73 74 71 if (/weak external vtable for (.*)$/) { 75 72 push @weakVTableClasses, $1; -
trunk/Tools/coverage/coverage.xcconfig
r278444 r278536 1 # Unexport weak external symbols from llvm coverage. 2 UNEXPORTED_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 1 4 OTHER_CFLAGS = $(inherited) -fprofile-instr-generate -fcoverage-mapping; 2 OTHER_LDFLAGS = $(inherited) -fprofile-instr-generate ;5 OTHER_LDFLAGS = $(inherited) -fprofile-instr-generate $(UNEXPORTED_SYMBOL_LDFLAGS_FOR_COVERAGE);
Note: See TracChangeset
for help on using the changeset viewer.