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