15 lines
578 B
Batchfile
15 lines
578 B
Batchfile
|
REM Export environment variables pointing to LLVM-Projects.
|
||
|
set root_dir=%cd%
|
||
|
set CURSES_LIB_PATH=%root_dir%/PDCurses
|
||
|
set LLVM_PROJ_BUILD=%root_dir%/llvm-project/build
|
||
|
set LLVM_PROJ_SRC=%root_dir%/llvm-project
|
||
|
|
||
|
md onnx-mlir\build
|
||
|
cd onnx-mlir\build
|
||
|
call cmake -G "Visual Studio 16 2019" -A x64 -T host=x64 -DLLVM_EXTERNAL_LIT="%root_dir%\llvm-project\build\Release\bin\llvm-lit.py" -DCMAKE_BUILD_TYPE=Release ..
|
||
|
call cmake --build . --config Release --target onnx-mlir -- /m
|
||
|
|
||
|
REM Run FileCheck tests
|
||
|
set LIT_OPTS=-v
|
||
|
call cmake --build . --config Release --target check-onnx-lit
|