This commit is contained in:
parent
c9d31f51bc
commit
643bd9857c
1 changed files with 11 additions and 3 deletions
14
build.ps1
14
build.ps1
|
|
@ -6,13 +6,16 @@ git clone https://github.com/KhronosGroup/glslang.git .\build\glslang
|
||||||
|
|
||||||
cd .\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"
|
$buildDir = "$($PWD.Path)\build"
|
||||||
cmake -B build `
|
cmake -B build `
|
||||||
-DCMAKE_C_COMPILER=clang `
|
-DCMAKE_C_COMPILER=clang `
|
||||||
-DCMAKE_CXX_COMPILER=clang++ `
|
-DCMAKE_CXX_COMPILER=clang++ `
|
||||||
-DCMAKE_CXX_FLAGS="-stdlib=libc++" `
|
-DCMAKE_CXX_FLAGS="$useLibc" `
|
||||||
-DCMAKE_EXE_LINKER_FLAGS="-stdlib=libc++" `
|
-DCMAKE_EXE_LINKER_FLAGS="$useLibc" `
|
||||||
-DCMAKE_SHARED_LINKER_FLAGS="-stdlib=libc++" `
|
-DCMAKE_SHARED_LINKER_FLAGS="$useLibc" `
|
||||||
-DCMAKE_BUILD_TYPE=Release `
|
-DCMAKE_BUILD_TYPE=Release `
|
||||||
-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY="$buildDir" `
|
-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY="$buildDir" `
|
||||||
-DCMAKE_LIBRARY_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_TARGET_x86_64_pc_linux_gnu"
|
||||||
"-DCRAFTER_BUILD_CONFIGURATION_TYPE_EXECUTABLE"
|
"-DCRAFTER_BUILD_CONFIGURATION_TYPE_EXECUTABLE"
|
||||||
"-c"
|
"-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
|
clang++ -std=c++26 -stdlib=libc++ -Wno-reserved-identifier -Wno-reserved-module-identifier --precompile \usr\share\libc++\v1\std.cppm -o .\build\std.pcm
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue