Skip to content

Commit 62fc27d

Browse files
committedDec 18, 2020
Add initial support -fcoverage-mapping support
This is enought make it work up until llvm-cov tries to read the named data sections in the binary and can't find them. For this final part to work we probably need to switch the object format to using multiple code and data sections: WebAssembly/tool-conventions#138 Not sure if its worth submitting this part in isolation without a fully working solution? See #13046
1 parent 2b9d22d commit 62fc27d

26 files changed

+5140
-5
lines changed
 

‎emcc.py

-4
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,6 @@ def filter_out_duplicate_dynamic_libs(inputs):
13741374
if not compile_only and not options.post_link:
13751375
ldflags = shared.emsdk_ldflags(newargs)
13761376
for f in ldflags:
1377-
newargs.append(f)
13781377
add_link_flag(len(newargs), f)
13791378

13801379
# SSEx is implemented on top of SIMD128 instruction set, but do not pass SSE flags to LLVM
@@ -1909,9 +1908,6 @@ def get_full_import_name(name):
19091908
'_emscripten_stack_get_base',
19101909
'_emscripten_stack_get_end']
19111910

1912-
if shared.Settings.USE_PTHREADS:
1913-
newargs.append('-pthread')
1914-
19151911
# Any "pointers" passed to JS will now be i64's, in both modes.
19161912
if shared.Settings.MEMORY64:
19171913
if settings_key_changes.get('WASM_BIGINT') == '0':

0 commit comments

Comments
 (0)
Failed to load comments.