spotify / XCRemoteCache

Other
833 stars 52 forks source link

Inspect code coverage with CLANG_COVERAGE_MAPPING ENV #32

Closed polac24 closed 2 years ago

polac24 commented 2 years ago

Replacing ENV CLANG_PROFILE_DATA_DIRECTORY with CLANG_COVERAGE_MAPPING when generating an environment fingerprint.

CLANG_PROFILE_DATA_DIRECTORY was added to make artifacts with enabled/disabled code coverage exclusive. That value is "" for a build with disabled code coverage and contains an absolute path like /Users/somePath/DerivedData/ProjectName/Build/ProfileData when building with code coverage. To not lead into cache miss when absolute paths are different on a consumer and producer (very likely), CLANG_COVERAGE_MAPPING can be used instead. Its value is simple:

Fixes #31