Skip to content

Commit 65c9f38

Browse files
committed
chore: catch cppfront build error in build.cmd
1 parent 1a709e0 commit 65c9f38

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.cmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ if not exist %cppfront% (
127127
popd
128128
)
129129

130+
if %ERRORLEVEL% neq 0 (
131+
echo ERROR: failed to compile cppfront
132+
exit %ERRORLEVEL%
133+
)
134+
130135
if not exist "%root_dir%.cache/cpp2/source/src" ( mkdir "%root_dir%.cache/cpp2/source/src" )
131136

132137
%cppfront% src/main.cpp2 -pure -import-std -l -format-colon-errors -o "%root_dir%.cache/cpp2/source/src/main.cpp"

0 commit comments

Comments
 (0)