From 3556b01fc7b7ef7d578fd9967021df8ce7ec45fe Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 28 May 2026 14:48:13 +0300 Subject: [PATCH] ci: pass thirdparty includes to direct Windows v.c checks --- .github/workflows/windows_ci_gcc.yml | 12 +++++++++++- .github/workflows/windows_ci_tcc.yml | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows_ci_gcc.yml b/.github/workflows/windows_ci_gcc.yml index 0547c06e7..1ba2f6a36 100644 --- a/.github/workflows/windows_ci_gcc.yml +++ b/.github/workflows/windows_ci_gcc.yml @@ -64,7 +64,17 @@ jobs: - name: Test new v.c run: | v -o v.c cmd/v - gcc -Werror -municode -w v.c -lws2_32 -std=c99 + $direct_c_flags = @( + '-Ithirdparty/zip' + '-Ithirdparty/cJSON' + '-Ithirdparty/mbedtls/library' + '-Ithirdparty/mbedtls/include' + '-Ithirdparty/mbedtls/3rdparty/everest/include' + '-Ithirdparty/mbedtls/3rdparty/everest/include/everest' + '-Ithirdparty/mbedtls/3rdparty/everest/include/everest/kremlib' + '-Ithirdparty/vschannel' + ) + gcc -Werror -municode -w @direct_c_flags v.c -lws2_32 -std=c99 - name: Install dependencies run: | v retry -- v setup-freetype diff --git a/.github/workflows/windows_ci_tcc.yml b/.github/workflows/windows_ci_tcc.yml index d6408c9d9..993532a9e 100644 --- a/.github/workflows/windows_ci_tcc.yml +++ b/.github/workflows/windows_ci_tcc.yml @@ -45,9 +45,19 @@ jobs: - name: Test new v.c run: | v -o v.c cmd/v + $direct_c_flags = @( + '-Ithirdparty/zip' + '-Ithirdparty/cJSON' + '-Ithirdparty/mbedtls/library' + '-Ithirdparty/mbedtls/include' + '-Ithirdparty/mbedtls/3rdparty/everest/include' + '-Ithirdparty/mbedtls/3rdparty/everest/include/everest' + '-Ithirdparty/mbedtls/3rdparty/everest/include/everest/kremlib' + '-Ithirdparty/vschannel' + ) # Match makev.bat's Windows stack reserve; the direct TCC-built # compiler can otherwise crash while compiling net.http-heavy scripts. - .\thirdparty\tcc\tcc.exe -Werror -w -ladvapi32 -lws2_32 -bt10 '-Wl,-stack=33554432' v.c + .\thirdparty\tcc\tcc.exe -Werror -w @direct_c_flags -ladvapi32 -lws2_32 -bt10 '-Wl,-stack=33554432' v.c - name: Install dependencies run: | v retry -- v setup-freetype -- 2.39.5