Revert "[K/N][runtime][interop] Refactoring to run cinterop in daemon"
This reverts commit 47858126da.
This commit is contained in:
@@ -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
@@ -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
@@ -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
|
||||
Reference in New Issue
Block a user