Few fixes in support units.
[brdnet.git] / fpc.cfg
blob7756088f6f6561b3898ee1ef2645b8f8567f6d45
1 #INCLUDE /etc/fpc.cfg
3 -Mobjfpc
4 #IFDEF RELEASE
5   -O2
6   -Xs
7   -vewnh
8   -CX
9   -XX
10 #ELSE
12 # Semantic checking
13 #      -S2        same as -Mobjfpc
14 #      -Sc        supports operators like C (*=,+=,/= and -=)
15 #      -Sa        include assertion code.
16 #      -Sd        same as -Mdelphi
17 #      -Se<x>     error options. <x> is a combination of the following:
18 #         <n> : compiler stops after <n> errors (default is 1)
19 #         w   : compiler stops also after warnings
20 #         n   : compiler stops also after notes
21 #         h   : compiler stops also after hints
22 #      -Sg        allow LABEL and GOTO
23 #      -Sh        Use ansistrings
24 #      -Si        support C++ styled INLINE
25 #      -Sk        load fpcylix unit
26 #      -SI<x>     set interface style to <x>
27 #         -SIcom    COM compatible interface (default)
28 #         -SIcorba  CORBA compatible interface
29 #      -Sm        support macros like C (global)
30 #      -So        same as -Mtp
31 #      -Sp        same as -Mgpc
32 #      -Ss        constructor name must be init (destructor must be done)
33 #      -Sx        enable exception keywords (default in Delphi/ObjFPC modes)
35 # Allow goto, inline, C-operators, C-vars
36 -Scagix
39 # Uncomment the next line if you always want static/dynamic units by default
40 # (can be overruled with -CD, -CS at the commandline)
41 #-CS
42 #-CD
44 # Set the default heapsize to 8Mb
45 #-Ch8000000
47 # Set default codegeneration checks (iocheck, overflow, range, stack)
48 -Ci
49 -Co
50 -Cr
51 -Ct
53 # Optimizer switches
54 # -Os        generate smaller code
55 # -Oa=N      set alignment to N
56 # -O1        level 1 optimizations (quick optimizations, debuggable)
57 # -O2        level 2 optimizations (-O1 + optimizations which make debugging more difficult)
58 # -O3        level 3 optimizations (-O2 + optimizations which also may make the program slower rather than faster)
59 # -Oo<x>     switch on optimalization x. See fpc -i for possible values
60 # -OoNO<x>   switch off optimalization x. See fpc -i for possible values
61 # -Op<x>     set target cpu for optimizing, see fpc -i for possible values
62 -O1
64 # generate always debugging information for GDB (slows down the compiling
65 # process)
66 #      -gc        generate checks for pointers
67 #      -gd        use dbx
68 #      -gg        use gsym
69 #      -gh        use heap trace unit (for memory leak debugging)
70 #      -gl        use line info unit to show more info for backtraces
71 #      -gv        generates programs tracable with valgrind
72 #      -gw        generate dwarf debugging info
74 -gl
76 # Write always a nice FPC logo ;)
77 #-l
79 # Verbosity
80 #      e : Show errors (default)       d : Show debug info
81 #      w : Show warnings               u : Show unit info
82 #      n : Show notes                  t : Show tried/used files
83 #      h : Show hints                  s : Show time stamps
84 #      i : Show general info           q : Show message numbers
85 #      l : Show linenumbers            c : Show conditionals
86 #      a : Show everything             0 : Show nothing (except errors)
87 #      b : Write file names messages   r : Rhide/GCC compatibility mode
88 #          with full path              x : Executable info (Win32 only)
89 #      v : write fpcdebug.txt with     p : Write tree.log with parse tree
90 #          lots of debugging info
92 -vewn
93 -Fr/home/tomas/errorsk.msg
94 #ENDIF