This commit is contained in:
parent
643bd9857c
commit
097ab7ae0c
1 changed files with 1 additions and 11 deletions
12
build.ps1
12
build.ps1
|
|
@ -10,17 +10,7 @@ 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 -B build `
|
cmake -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