-fixed LDC demos compilation
-clean ThreadPool code -fixed betterC demos compilation
This commit is contained in:
parent
1387011b04
commit
a3b33a4935
3 changed files with 12 additions and 7 deletions
|
|
@ -19,8 +19,7 @@
|
|||
"libs-linux-x86_64": ["cimgui","SDL2","SDL2_image"],
|
||||
"lflags-linux-x86_64": ["-rpath=libs/linux/x64/","-Llibs/linux/x64/"],
|
||||
"dflags-ldc" : [
|
||||
"--ffast-math",
|
||||
"-enable-cross-module-inlining"
|
||||
"--ffast-math"
|
||||
],
|
||||
"configurations" : [
|
||||
{
|
||||
|
|
|
|||
12
demos/external/sources/mmutils/thread_pool.d
vendored
12
demos/external/sources/mmutils/thread_pool.d
vendored
|
|
@ -33,8 +33,14 @@ else
|
|||
version (D_BetterC)
|
||||
{
|
||||
version (Posix) version = MM_USE_POSIX_THREADS;
|
||||
import bubel.ecs.std;
|
||||
extern (C) __gshared int _d_eh_personality(int, int, size_t, void*, void*)
|
||||
|
||||
extern (C) void free(void*) @nogc nothrow @system;
|
||||
extern (C) void* malloc(size_t size) @nogc nothrow @system;
|
||||
extern (C) void* realloc(void*, size_t size) @nogc nothrow @system;
|
||||
extern (C) void* memcpy(return void*, scope const void*, size_t size) @nogc nothrow @system;
|
||||
|
||||
//hacks for LDC
|
||||
/*extern (C) __gshared int _d_eh_personality(int, int, size_t, void*, void*)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -47,7 +53,7 @@ version (D_BetterC)
|
|||
extern (C) void* _d_allocmemory(size_t sz)
|
||||
{
|
||||
return malloc(sz);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
"subConfigurations":
|
||||
{
|
||||
"bindbc-sdl": "static",
|
||||
"ecs":"library"
|
||||
"bubel_ecs":"library"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -41,7 +41,7 @@
|
|||
"subConfigurations":
|
||||
{
|
||||
"bindbc-sdl": "staticBC",
|
||||
"ecs":"library-betterC"
|
||||
"bubel_ecs":"library-betterC"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue