-fixed LDC demos compilation

-clean ThreadPool code
-fixed betterC demos compilation
This commit is contained in:
Mergul 2021-03-03 12:29:59 +01:00
parent 1387011b04
commit a3b33a4935
3 changed files with 12 additions and 7 deletions

View file

@ -19,8 +19,7 @@
"libs-linux-x86_64": ["cimgui","SDL2","SDL2_image"], "libs-linux-x86_64": ["cimgui","SDL2","SDL2_image"],
"lflags-linux-x86_64": ["-rpath=libs/linux/x64/","-Llibs/linux/x64/"], "lflags-linux-x86_64": ["-rpath=libs/linux/x64/","-Llibs/linux/x64/"],
"dflags-ldc" : [ "dflags-ldc" : [
"--ffast-math", "--ffast-math"
"-enable-cross-module-inlining"
], ],
"configurations" : [ "configurations" : [
{ {

View file

@ -33,8 +33,14 @@ else
version (D_BetterC) version (D_BetterC)
{ {
version (Posix) version = MM_USE_POSIX_THREADS; 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; return 0;
} }
@ -47,7 +53,7 @@ version (D_BetterC)
extern (C) void* _d_allocmemory(size_t sz) extern (C) void* _d_allocmemory(size_t sz)
{ {
return malloc(sz); return malloc(sz);
} }*/
} }
else else
{ {

View file

@ -29,7 +29,7 @@
"subConfigurations": "subConfigurations":
{ {
"bindbc-sdl": "static", "bindbc-sdl": "static",
"ecs":"library" "bubel_ecs":"library"
} }
}, },
{ {
@ -41,7 +41,7 @@
"subConfigurations": "subConfigurations":
{ {
"bindbc-sdl": "staticBC", "bindbc-sdl": "staticBC",
"ecs":"library-betterC" "bubel_ecs":"library-betterC"
} }
} }
] ]