mirror of
https://github.com/RPCSX/xbyak.git
synced 2025-01-08 11:33:06 +00:00
38 lines
626 B
Batchfile
38 lines
626 B
Batchfile
@echo off
|
|
if /i "%1"=="64" (
|
|
set OPT2=-DXBYAK64
|
|
set OPT3=win64
|
|
) else (
|
|
set OPT2=-DXBYAK32
|
|
set OPT3=win32
|
|
)
|
|
|
|
pushd ..\gen
|
|
call update
|
|
popd
|
|
|
|
if /i "%1"=="64" (
|
|
call :sub 1
|
|
call :sub 2
|
|
) else (
|
|
call :sub 1
|
|
)
|
|
goto end
|
|
|
|
:sub
|
|
echo cl address.cpp %OPT% %OPT2%
|
|
cl address.cpp %OPT% %OPT2%
|
|
address %1% > a.asm
|
|
echo nasm -f %OPT3% -l a.lst a.asm
|
|
nasm -f %OPT3% -l a.lst a.asm
|
|
awk "!/warning:/ {print $3}" < a.lst > ok.lst
|
|
echo address %1% jit > nm.cpp
|
|
address %1% jit > nm.cpp
|
|
echo cl -I../ -DXBYAK_TEST nm_frame.cpp %OPT% %OPT2%
|
|
cl -I../ -DXBYAK_TEST nm_frame.cpp %OPT% %OPT2%
|
|
nm_frame > x.lst
|
|
diff x.lst ok.lst
|
|
wc x.lst
|
|
|
|
:end
|