Skip to content

Commit 098514d

Browse files
committed
improve compilation on windows (previously worked with clang and gcc, but not tcc and msvc)
1 parent 034b75c commit 098514d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.zip
22
*_test
3+
sqlite3.obj

sqlite.c.v

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ module sqlite
33
#flag -I@VMODROOT
44
#flag -L@VMODROOT
55
#flag @VMODROOT/sqlite3.o
6-
#flag -lpthread
76

8-
$if tinyc {
7+
$if !windows {
8+
#flag -lpthread
9+
}
10+
11+
$if tinyc && !windows {
912
// Needed because there are two usages of `fabs` in `sqlite3.c:129796:if( fabs(s) > fabs(r) ){`
1013
// gcc and clang manage to compile it without needing -lm ...
1114
#flag -lm

0 commit comments

Comments
 (0)