rayt/build.bat
2025-04-29 19:57:13 +02:00

27 lines
485 B
Batchfile

@echo off
ctime -begin timeBuild.ctm
set CommonCompilerFlags=/nologo /Zi /FC /Od
@rem /WX /W4 /wd4201 /wd4100 /wd4189 /wd4244 /wd4127 /wd4456
@rem
@rem
set cuda_root=D:/lib/cudatoolkit/lib/x64
set CudaSources=../src/main.cu
set CudaRemoveWarnings=-diag-suppress 177
IF NOT EXIST .\build mkdir .\build
pushd .\build
nvcc %CudaSources% %CudaRemoveWarnings% -o program.exe
set LastError=%ERRORLEVEL%
popd
ctime -end timeBuild.ctm %LastError%
IF NOT %LastError%==0 GOTO :end
:end