mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 16:11:08 +03:00
D dynamic compilation support
This commit is contained in:
parent
1c2271d00d
commit
42f283c221
41 changed files with 2058 additions and 9 deletions
22
runtime/jit-rt/cpp/compile.cpp
Normal file
22
runtime/jit-rt/cpp/compile.cpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue