From 23e0f7f446b9a27f6ac8ae3f646719324dfac781 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Thu, 6 Jun 2024 13:53:25 +0200 Subject: [build] debug --- build.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'build.c') diff --git a/build.c b/build.c index 259c013..c8f94e8 100755 --- a/build.c +++ b/build.c @@ -11,6 +11,16 @@ exit $? #include #include +#if defined(_WIN32) && !defined(__CYGWIN__) +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN 1 +# endif +# ifndef NOMINMAX +# define NOMINMAX +# endif +# include +#endif + #define PROJECT "kit" #define SOURCE_LIB "source/kit/_lib.c" #define FOLDER_TESTS "source/tests/" @@ -550,16 +560,15 @@ i32 main(i32 argc, c8 **argv) { } fflush(stdout); - printf(" .. clean\n"); fflush(stdout); system(fmt("\"." DLM "%s" DLM "test_interprocess\" clean", destination)); - printf(" .. reader\n"); fflush(stdout); - if (OS == WINDOWS) + + if (OS == WINDOWS) { system(fmt("start "" \"." DLM "%s" DLM "test_interprocess\" reader", destination)); - else + } else system(fmt("\"." DLM "%s" DLM "test_interprocess\" reader &", destination)); - printf(" .. writer\n"); fflush(stdout); + code = system(fmt("\"." DLM "%s" DLM "test_interprocess\" writer", destination)); - printf(" .. done\n"); fflush(stdout); + if (code == 0) printf("interprocess - OK\n"); else { -- cgit v1.2.3