[K/N] Remove LLVM coverage
The -Xcoverage feature has not worked and has been disabled for a while. This fix removes it, and all of its uses. Co-authored-by: Troels Lund <troels@google.com> Merge-request: KOTLIN-MR-821 Merged-by: Alexander Shabalin <alexander.shabalin@jetbrains.com>
This commit is contained in:
committed by
Space Cloud
parent
e0c931f69d
commit
4f77434ea5
@@ -229,13 +229,6 @@ bitcode {
|
||||
onlyIf { target.supportsLibBacktrace() }
|
||||
}
|
||||
|
||||
module("profileRuntime") {
|
||||
srcRoot.set(layout.projectDirectory.dir("src/profile_runtime"))
|
||||
sourceSets {
|
||||
main {}
|
||||
}
|
||||
}
|
||||
|
||||
module("objc") {
|
||||
headersDirs.from(files("src/main/cpp"))
|
||||
sourceSets {
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
// Define symbols that are required for code coverage but missing in compiler-RT for MinGW.
|
||||
// See https://reviews.llvm.org/D58106/ for details.
|
||||
#ifdef KONAN_WINDOWS
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
__attribute__((used))
|
||||
int lprofGetHostName(char *hostName, int length) {
|
||||
const int maxHostNameLength = 128;
|
||||
WCHAR buffer[maxHostNameLength];
|
||||
DWORD bufferSize = sizeof(buffer);
|
||||
COMPUTER_NAME_FORMAT nameType = ComputerNameDnsFullyQualified;
|
||||
if (!GetComputerNameExW(nameType, buffer, &bufferSize)) {
|
||||
return -1;
|
||||
}
|
||||
int bytesWritten = WideCharToMultiByte(CP_UTF8, 0, buffer, -1, hostName, length, nullptr, nullptr);
|
||||
if (bytesWritten == 0) {
|
||||
return -1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user