mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 12:40:17 +00:00
976e110c0b
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26167 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
441 B
Batchfile
Executable File
21 lines
441 B
Batchfile
Executable File
@echo off
|
|
rem doflex.cmd prefix mode target source
|
|
rem mode - either debug or release
|
|
rem target - generated parser file name without extension
|
|
rem source - input to bison
|
|
|
|
if "%1"=="debug" (set flags=-t) else (set flags=-t)
|
|
|
|
rem Test for presence of flex.
|
|
flex --help >NUL
|
|
if errorlevel 1 goto noflex
|
|
|
|
rem Run flex.
|
|
flex %flags% >%2.cpp %3
|
|
exit
|
|
|
|
:noflex
|
|
echo Flex not found. Using pre-generated files.
|
|
copy %~pn3.cpp.cvs %2.cpp
|
|
exit
|