builtin: add static GC support on Windows with TCC (#14497)

master
spaceface 2022-05-22 20:25:46 +02:00 committed by GitHub
parent 5328dabad1
commit ba859c584b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -594,7 +594,9 @@ jobs:
- name: Build examples - name: Build examples
run: ./v build-examples run: ./v build-examples
- name: v2 self compilation - name: v2 self compilation
run: .\v.exe -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v run: .\v.exe -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v && .\v3.exe -o v4.exe cmd/v
- name: v2 self compilation with -gc boehm
run: .\v.exe -o v2.exe -gc boehm cmd/v && .\v2.exe -o v3.exe -gc boehm cmd/v && .\v3.exe -o v4.exe -gc boehm cmd/v
## ## tcc32 ## ## tcc32
## - name: Build with make.bat -tcc32 ## - name: Build with make.bat -tcc32

View File

@ -59,14 +59,13 @@ $if dynamic_boehm ? {
#flag $first_existing("/usr/local/lib/libgc.a", "/usr/lib/libgc.a") #flag $first_existing("/usr/local/lib/libgc.a", "/usr/lib/libgc.a")
#flag -lpthread #flag -lpthread
} $else $if windows { } $else $if windows {
#flag -DGC_NOT_DLL=1
#flag -DGC_WIN32_THREADS=1
$if tinyc { $if tinyc {
#flag -I@VEXEROOT/thirdparty/libgc/include #flag -I@VEXEROOT/thirdparty/libgc/include
#flag -L@VEXEROOT/thirdparty/tcc/lib #flag @VEXEROOT/thirdparty/tcc/lib/libgc.a
#flag -lgc #flag -luser32
} $else { } $else {
#flag -DGC_NOT_DLL=1
#flag -DGC_WIN32_THREADS=1
#flag -DGC_BUILTIN_ATOMIC=1
#flag -I@VEXEROOT/thirdparty/libgc/include #flag -I@VEXEROOT/thirdparty/libgc/include
#flag @VEXEROOT/thirdparty/libgc/gc.o #flag @VEXEROOT/thirdparty/libgc/gc.o
} }