move compiler/main.v to v.v

pull/2336/head
Alexander Medvednikov 2019-10-14 04:39:45 +03:00
parent e5b0478e19
commit 387e56e215
3 changed files with 7 additions and 7 deletions

View File

@ -19,7 +19,7 @@ endif
all: fresh_vc fresh_tcc
ifdef WIN32
$(CC) -std=c99 -w -o v0.exe vc/v_win.c
./v0.exe -o v.exe compiler
./v0.exe -o v.exe v.v
rm -f v0.exe
else
$(CC) -std=gnu11 -w -o v vc/v.c -lm
@ -27,7 +27,7 @@ else
V_V=`git rev-parse --short HEAD`; \
if [ $$VC_V != $$V_V ]; then \
echo "Self rebuild ($$VC_V => $$V_V)"; \
./v -o v compiler; \
./v v.v; \
fi)
endif
rm -rf vc/
@ -43,4 +43,4 @@ fresh_tcc:
git clone --depth 1 --quiet https://github.com/vmisc/tccbin /var/tmp/tcc
selfcompile:
./v -o v compiler
./v v.v

View File

@ -35,8 +35,8 @@ if %ERRORLEVEL% NEQ 0 (
)
echo Now using V to build V...
v2.exe -o v3.exe compiler
v3.exe -o v.exe -prod compiler
v2.exe -o v3.exe v.v
v3.exe -o v.exe -prod v.v
if %ERRORLEVEL% NEQ 0 (
echo v.exe failed to compile itself - Create an issue at 'https://github.com/vlang'
exit /b 1
@ -69,8 +69,8 @@ if %ERRORLEVEL% NEQ 0 (
)
echo rebuild from source (twice, in case of C definitions changes)
v2.exe -os msvc -o v3.exe compiler
v3.exe -os msvc -o v.exe -prod compiler
v2.exe -os msvc -o v3.exe v.v
v3.exe -os msvc -o v.exe -prod v.v
if %ERRORLEVEL% NEQ 0 (
echo V failed to build itself
goto :compileerror