HomePhabricator

Fix linker option for -fprofile-arcs -ftest-coverage

Description

Fix linker option for -fprofile-arcs -ftest-coverage

Summary:
Linux toolchain accidentally added "-ullvm_runtime_variable" when "-fprofile-arcs -ftest-coverage", this is not added when "--coverage" option is used.
Using "-u
llvm_runtime_variable" generates an empty default.profraw file while an application built with "-fprofile-arcs -ftest-coverage" is running.

Reviewers: calixte, marco-c, sylvestre.ledru

Reviewed By: marco-c

Subscribers: vsk, cfe-commits

Differential Revision: https://reviews.llvm.org/D54195

Details

Committed
marcoNov 27 2018, 9:31 AM
Reviewer
marco-c
Differential Revision
D54195: Fix linker option for -fprofile-arcs -ftest-coverage
Parents
rC347676: Revert "[clang] - Simplify tools::SplitDebugName."
Branches
Unknown
Tags
Unknown