-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgfilt.bat
executable file
·41 lines (29 loc) · 1.34 KB
/
gfilt.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@echo off
rem gfilt.bat: Compile with g++ (2.95.x or 3.x) using STL Error Decryption
rem ********************************************************************
rem Configure COMPILER, COPTS, STLFILT and DOPTS as appropriate for your system
rem (Note: If the env. variable GFILTOPTS is defined, it is appended to DOPTS):
rem Name of your g++ compiler command:
set COMPILER=c++2
rem Compiler options:
set COPTS=-fmessage-length=0
rem Full pathname of the Perl script:
set STLFILT=d:\src\cl\gcc\gSTLFilt.pl
rem Decryptor options (to the Perl script):
set DOPTS=/hdr:m /cand:s /iter:L %GFILTOPTS%
rem ********************************************************************
if not "%1" == "" goto compile
echo Usage: gfilt [options] source-file
echo Compiles source-file, filters errors through STL Error Decryptor.
echo.
goto done
:compile
rem
rem ********************************************************************
rem Note: you can change the /hdr and /cand options for varying detail.
rem See the comments in gSTLFilt.pl for an explanation of the options.
rem ********************************************************************
%COMPILER% %COPTS% %* 2>&1 | perl -W %STLFILT% %DOPTS%
rem Alternative compile line, with pagination of filtered output:
rem %COMPILER% %COPTS% %* 2>&1 | perl %STLFILT% %DOPTS% | more
:done