mirror of
https://github.com/jamriska/ebsynth.git
synced 2025-12-16 08:27:45 +01:00
13 lines
416 B
Batchfile
13 lines
416 B
Batchfile
|
|
@echo off
|
||
|
|
setlocal ENABLEDELAYEDEXPANSION
|
||
|
|
|
||
|
|
for %%V in (15,14,12,11) do if exist "!VS%%V0COMNTOOLS!" call "!VS%%V0COMNTOOLS!..\..\VC\vcvarsall.bat" x86 && goto compile
|
||
|
|
|
||
|
|
:compile
|
||
|
|
nvcc -arch compute_30 src\ebsynth.cu -m32 -O6 -w -I "include" -o "bin\ebsynth.exe" -Xcompiler "/DNDEBUG /Ox /Oy /Gy /Oi /fp:fast" -Xlinker "/IMPLIB:\"lib\ebsynth.lib\"" || goto error
|
||
|
|
goto :EOF
|
||
|
|
|
||
|
|
:error
|
||
|
|
echo FAILED
|
||
|
|
@%COMSPEC% /C exit 1 >nul
|