Skip to content

Commit 142179b

Browse files
committed
fix(go/ci): set msvc cgo flags for ffi
1 parent 1ddb758 commit 142179b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci-go.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ jobs:
7373
if ($IsWindows) {
7474
$env:PATH = "$ffiPath;$env:PATH"
7575
$env:LIB = "$ffiPath;$env:LIB"
76-
$env:CGO_LDFLAGS = "-L$ffiPath"
76+
$env:CGO_LDFLAGS = "-L$ffiPath -lkreuzberg_ffi"
77+
$env:CGO_CFLAGS = "-I$($ffiPath | Split-Path)/kreuzberg-ffi"
78+
$env:CC = "cl.exe"
79+
$env:CXX = "cl.exe"
7780
} else {
7881
$env:LD_LIBRARY_PATH = "$ffiPath;$env:LD_LIBRARY_PATH"
7982
$env:DYLD_LIBRARY_PATH = "$ffiPath;$env:DYLD_LIBRARY_PATH"

0 commit comments

Comments
 (0)