summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests/dexter/dex/builder/scripts/windows/clang.bat
blob: 4aa9e28a60167c63427fdf6d9ad679797fed38cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@setlocal EnableDelayedExpansion

for %%I in (%SOURCE_INDEXES%) do (
  %PATHTOCLANGPP% -fuse-ld=lld -c !COMPILER_OPTIONS_%%I! !SOURCE_FILE_%%I! -o !OBJECT_FILE_%%I!
  if errorlevel 1 goto :FAIL
)

%PATHTOCLANGPP% -fuse-ld=lld %LINKER_OPTIONS% %OBJECT_FILES% -o %EXECUTABLE_FILE%
if errorlevel 1 goto :FAIL
goto :END

:FAIL
echo FAILED
exit /B 1

:END
exit /B 0
OpenPOWER on IntegriCloud