free user of the need to explicitly specifying ciabatta dependencies in the linker

This commit is contained in:
bumbread 2022-07-31 17:03:53 +11:00
parent b90d7119d4
commit 3b4da3a797
3 changed files with 10 additions and 4 deletions

View File

@ -1 +1 @@
clang test\test_%test%.c src\libwinsane\libwinsane.obj -Iinc -g -lkernel32 -lDbghelp -lciabatta.lib clang test\test_%test%.c src\libwinsane\libwinsane.obj -Iinc -g -lciabatta.lib

9
readme
View File

@ -32,10 +32,13 @@ PLATFORM SUPPORT
- x86-64 - x86-64
USAGE USAGE
For clang users: add the following flags to your compilation command: NOTE: libwinsane.obj can be obtained by running:
-I <path/to/ciabatta/inc> -nostdlib -mfma bake -DNO_CRT
In the libwinsane directory.
Add the following flags to your compilation command:
-I <path/to/ciabatta/inc> libwinsane.obj -nostdlib -mfma
Don't forget to link to the following libraries: Don't forget to link to the following libraries:
-lciabatta.lib -lkernel32 -lDbgHelp -lciabatta.lib
CONTRIBUTING CONTRIBUTING
Pull requests are always welcome. Pull requests are always welcome.

View File

@ -7,6 +7,9 @@ int _fltused=0;
extern int main(int argc, char** argv); extern int main(int argc, char** argv);
#pragma comment(lib, "kernel32.lib")
#pragma comment(lib, "DbgHelp.lib")
// Exit routines // Exit routines
#define ATEXIT_FUNC_COUNT 64 #define ATEXIT_FUNC_COUNT 64
#define ATQEXIT_FUNC_COUNT 64 #define ATQEXIT_FUNC_COUNT 64