File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ echo Building V
4
4
5
5
REM default tcc
6
6
set tcc_url = https://github.com/vlang/tccbin_win
7
- set tcc_dir = %~dp0 thirdparty\tcc
7
+ set tcc_dir = " %~dp0 thirdparty\tcc"
8
8
9
9
REM let a particular environment specify their own tcc
10
10
if " %TCC_GIT% " == " " goto :init
@@ -108,10 +108,10 @@ if %ERRORLEVEL% NEQ 0 goto :compile_error
108
108
goto :success
109
109
110
110
:fresh_tcc
111
- rd /s /q %tcc_dir%
111
+ rd /s /q " %tcc_dir% "
112
112
113
113
:clone_tcc
114
- git clone --depth 1 --quiet %tcc_url% %tcc_dir%
114
+ git clone --depth 1 --quiet " %tcc_url% " " %tcc_dir% "
115
115
set cloned_tcc = 1
116
116
goto :tcc_strap
117
117
@@ -122,7 +122,7 @@ echo Attempting to build v.c with TCC...
122
122
where /q tcc
123
123
if %ERRORLEVEL% NEQ 0 (
124
124
if exist " %tcc_dir% " (
125
- set tcc_exe = %tcc_dir% \tcc.exe
125
+ set tcc_exe = " %tcc_dir% \tcc.exe"
126
126
) else if " %cloned_tcc% " == " " (
127
127
echo ^ > TCC not found
128
128
echo ^ > Downloading TCC from %tcc_url%
@@ -143,8 +143,7 @@ if exist "%tcc_dir%" (
143
143
popd
144
144
)
145
145
)
146
-
147
- %tcc_exe% -std=c99 -municode -lws2_32 -lshell32 -ladvapi32 -bt10 -w -o v.exe vc\v_win.c
146
+ " %tcc_exe% " -std=c99 -municode -lws2_32 -lshell32 -ladvapi32 -bt10 -w -o v.exe vc\v_win.c
148
147
if %ERRORLEVEL% NEQ 0 goto :compile_error
149
148
150
149
echo ^ > Compiling with .\v.exe self
You can’t perform that action at this time.
0 commit comments