windows fix
Some checks failed
demo.yaml / windows fix (push) Failing after 0s

This commit is contained in:
Jorijn van der Graaf 2026-03-02 19:47:02 +01:00
commit 643bd9857c

View file

@ -6,13 +6,16 @@ git clone https://github.com/KhronosGroup/glslang.git .\build\glslang
cd .\build\glslang
$useLibc = "-nostdinc++ -nostdlib++ -isystem $env:LIBC_DIR\include\c++\v1 -L $env:LIBC_DIR\lib -lc++"
$buildDir = "$($PWD.Path)\build"
cmake -B build `
-DCMAKE_C_COMPILER=clang `
-DCMAKE_CXX_COMPILER=clang++ `
-DCMAKE_CXX_FLAGS="-stdlib=libc++" `
-DCMAKE_EXE_LINKER_FLAGS="-stdlib=libc++" `
-DCMAKE_SHARED_LINKER_FLAGS="-stdlib=libc++" `
-DCMAKE_CXX_FLAGS="$useLibc" `
-DCMAKE_EXE_LINKER_FLAGS="$useLibc" `
-DCMAKE_SHARED_LINKER_FLAGS="$useLibc" `
-DCMAKE_BUILD_TYPE=Release `
-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY="$buildDir" `
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY="$buildDir" `
@ -32,6 +35,11 @@ $common_options = @(
"-DCRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_linux_gnu"
"-DCRAFTER_BUILD_CONFIGURATION_TYPE_EXECUTABLE"
"-c"
"-nostdinc++"
"-nostdlib++"
"-isystem $env:LIBC_DIR\include\c++\v1"
"-L $env:LIBC_DIR\lib"
"-lc++"
)
clang++ -std=c++26 -stdlib=libc++ -Wno-reserved-identifier -Wno-reserved-module-identifier --precompile \usr\share\libc++\v1\std.cppm -o .\build\std.pcm