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

This commit is contained in:
Igor Chevdar
2021-10-04 11:10:00 +05:00
parent 8907c3506d
commit 47858126da
14 changed files with 302 additions and 87 deletions
+23
View File
@@ -0,0 +1,23 @@
/*
* 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
@@ -0,0 +1,18 @@
/*
* 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