Revert "[K/N][runtime][interop] Refactoring to run cinterop in daemon"

This reverts commit 47858126da.
This commit is contained in:
Igor Chevdar
2021-11-26 14:05:59 +05:00
parent 0ccb271323
commit 353f82f9e6
14 changed files with 88 additions and 303 deletions
-4
View File
@@ -11,16 +11,12 @@ bitcode {
create("files"){
dependsOn(":kotlin-native:dependencies:update")
}
create("env"){
dependsOn(":kotlin-native:dependencies:update")
}
}
val hostName: String by project
val build by tasks.registering {
dependsOn("${hostName}Files")
dependsOn("${hostName}Env")
}
val clean by tasks.registering {
-23
View File
@@ -1,23 +0,0 @@
/*
* Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
#include "Env.h"
#ifdef _WIN32
#include <windows.h>
void setEnv(const char* name, const char* value) {
SetEnvironmentVariableA(name, value);
}
#else
#include <cstdlib>
void setEnv(const char* name, const char* value) {
setenv(name, value, 1);
}
#endif
-18
View File
@@ -1,18 +0,0 @@
/*
* Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
#ifndef COMMON_ENV_H
#define COMMON_ENV_H
#ifdef __cplusplus
extern "C" {
#endif
void setEnv(const char* name, const char* value);
#ifdef __cplusplus
}
#endif
#endif // COMMON_ENV_H