Skip to content

Instantly share code, notes, and snippets.

@mgrebenets
Created June 23, 2019 12:21
Show Gist options
  • Save mgrebenets/0cd24fccb0bdb8a2208d7672759f2c35 to your computer and use it in GitHub Desktop.
Save mgrebenets/0cd24fccb0bdb8a2208d7672759f2c35 to your computer and use it in GitHub Desktop.
// Extend the linker arguments when code coverage is enabled. We use a separate setting here to do this so that the extra linker flags will always be passed when code coverage is enabled, even if this specific target disables code coverage instrumentation via CLANG_ENABLE_COVERAGE_MAPPING.
{
Name = "CLANG_COVERAGE_MAPPING_LINKER_ARGS";
Type = Boolean;
DefaultValue = "$(CLANG_COVERAGE_MAPPING)";
AdditionalLinkerArgs = {
NO = ();
YES = (
"-fprofile-instr-generate",
);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment