This commit is contained in:
parent
3a0e411c33
commit
281f2e5a6b
1 changed files with 13 additions and 3 deletions
16
build.ps1
16
build.ps1
|
|
@ -7,10 +7,20 @@ 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++"
|
$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 -G Ninja -B $buildDir `
|
||||||
cmake -G Ninja -B build -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -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" -DENABLE_OPT=OFF
|
-DCMAKE_C_COMPILER=clang `
|
||||||
|
-DCMAKE_CXX_COMPILER=clang++ `
|
||||||
|
-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" `
|
||||||
|
-DENABLE_OPT=OFF
|
||||||
|
|
||||||
cmake --build build --config Release
|
cmake --build build --config Release
|
||||||
cd ..\..\
|
cd ..\..\
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue