ldc/runtime/jit-rt/cpp/compile.cpp
2017-10-16 00:21:49 +03:00

21 lines
588 B
C++

#include <cstddef>
struct Context;
extern "C" {
// Silence missing-variable-declaration clang warning
extern void *runtimecompile_modules_head;
void *runtimecompile_modules_head = nullptr;
#ifdef _WIN32
__declspec(dllimport)
#endif
extern void rtCompileProcessImplSo(const void *modlist_head,
const Context *context,
std::size_t contextSize);
void rtCompileProcessImpl(const Context *context, std::size_t contextSize) {
rtCompileProcessImplSo(runtimecompile_modules_head, context, contextSize);
}
}