Advertisement
Guest User

fpc.cfg

a guest
Dec 19th, 2012
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.32 KB | None | 0 0
  1. # CodeTyphon Studio
  2. # fpc.cfg for Free Pascal Compiler
  3. # for Linux32
  4.  
  5. # ----------------------
  6. # Defines (preprocessor)
  7. # ----------------------
  8.  
  9. #
  10. # nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE, #UNDEF are allowed
  11. #
  12. # -d is the same as #DEFINE
  13. # -u is the same as #UNDEF
  14. #
  15.  
  16. #
  17. # Some examples (for switches see below, and the -? helppages)
  18. #
  19. # Try compiling with the -dRELEASE or -dDEBUG on the commandline
  20. #
  21.  
  22. # For a release compile with optimizes and strip debuginfo
  23. #IFDEF RELEASE
  24. -O2
  25. -Xs
  26. #WRITE Compiling Release Version
  27. #ENDIF
  28.  
  29. # For a debug version compile with debuginfo and all codegeneration checks on
  30. #IFDEF DEBUG
  31. -g
  32. -Crtoi
  33. #WRITE Compiling Debug Version
  34. #ENDIF
  35.  
  36. # set binutils prefix
  37.  
  38. #IFNDEF CPUI386
  39. #IFNDEF CPUAMD64
  40. #DEFINE NEEDCROSSBINUTILS
  41. #ENDIF
  42. #ENDIF
  43.  
  44.  
  45. #IFNDEF linux
  46. #DEFINE NEEDCROSSBINUTILS
  47. #ENDIF
  48.  
  49. # binutils prefix for cross compiling
  50. #IFDEF FPC_CROSSCOMPILING
  51. -XP$fpctarget-
  52. #ENDIF
  53.  
  54. # ----------------
  55. # Parsing switches
  56. # ----------------
  57.  
  58. # Pascal language mode
  59. # -Mfpc free pascal dialect (default)
  60. # -Mobjfpc switch some Delphi 2 extensions on
  61. # -Mdelphi tries to be Delphi compatible
  62. # -Mtp tries to be TP/BP 7.0 compatible
  63. # -Mgpc tries to be gpc compatible
  64. # -Mmacpas tries to be compatible to the macintosh pascal dialects
  65. #
  66. # Turn on Object Pascal extensions by default
  67. #-Mobjfpc
  68.  
  69. # Assembler reader mode
  70. # -Rdefault use default assembler
  71. # -Ratt read AT&T style assembler
  72. # -Rintel read Intel style assembler
  73. #
  74. # All assembler blocks are AT&T styled by default
  75. #-Ratt
  76.  
  77. # Semantic checking
  78. # -S2 same as -Mobjfpc
  79. # -Sc supports operators like C (*=,+=,/= and -=)
  80. # -Sa include assertion code.
  81. # -Sd same as -Mdelphi
  82. # -Se<x> error options. <x> is a combination of the following:
  83. # <n> : compiler stops after the <n> errors (default is 1)
  84. # w : compiler stops also after warnings
  85. # n : compiler stops also after notes
  86. # h : compiler stops also after hints
  87. # -Sg allow LABEL and GOTO
  88. # -Sh Use ansistrings
  89. # -Si support C++ styled INLINE
  90. # -Sk load fpcylix unit
  91. # -SI<x> set interface style to <x>
  92. # -SIcom COM compatible interface (default)
  93. # -SIcorba CORBA compatible interface
  94. # -Sm support macros like C (global)
  95. # -So same as -Mtp
  96. # -Sp same as -Mgpc
  97. # -Ss constructor name must be init (destructor must be done)
  98. # -St allow static keyword in objects
  99. # -Sx enable exception keywords (default in Delphi/ObjFPC modes)
  100. #
  101. # Allow goto, inline, C-operators, C-vars
  102. -Sgic
  103.  
  104. # ---------------
  105. # Code generation
  106. # ---------------
  107.  
  108. # Uncomment the next line if you always want static/dynamic units by default
  109. # (can be overruled with -CD, -CS at the commandline)
  110. #-CS
  111. #-CD
  112.  
  113. # Set the default heapsize to 8Mb
  114. #-Ch8000000
  115.  
  116. # Set default codegeneration checks (iocheck, overflow, range, stack)
  117. #-Ci
  118. #-Co
  119. #-Cr
  120. #-Ct
  121.  
  122. # Optimizer switches
  123. # -Os generate smaller code
  124. # -O1 level 1 optimizations (quick optimizations, debuggable)
  125. # -O2 level 2 optimizations (-O1 + optimizations which make debugging more difficult)
  126. # -O3 level 3 optimizations (-O2 + optimizations which also may make the program slower rather than faster)
  127. # -Op<x> set target cpu for optimizing, see fpc -i for possible values
  128. #
  129. # See "fpc -i" also for more fine-grained control over which optimizations
  130. # to perform
  131.  
  132. # -----------------------
  133. # Set Filenames and Paths
  134. # -----------------------
  135.  
  136. # Slashes are also allowed under dos
  137.  
  138. # path to the messagefile, not necessary anymore but can be used to override
  139. # the default language
  140. #-Fr/usr/lib/codetyphon/fpc/msg/errore.msg
  141. #-Fr/usr/lib/codetyphon/fpc/msg/errorn.msg
  142.  
  143. # searchpath for includefiles
  144. #-Fi/pp/inc;/pp/rtl/inc
  145.  
  146. #IFDEF FPCAPACHE_1_3
  147. -Fu/usr/lib/codetyphon/fpc/units/$fpctarget/httpd-1.3/
  148. #ELSE
  149. #IFDEF FPCAPACHE_2_0
  150. -Fu/usr/lib/codetyphon/fpc/units/$fpctarget/httpd-2.0
  151. #ELSE
  152. -Fu/usr/lib/codetyphon/fpc/units/$fpctarget/httpd-2.2
  153. #ENDIF
  154. #ENDIF
  155.  
  156. # searchpath for units and other system dependent things
  157. -Fu/usr/lib/codetyphon/fpc/bin/i386-linux/
  158. -Fu/usr/lib/codetyphon/fpc/units/$fpctarget
  159. -Fu/usr/lib/codetyphon/fpc/units/$fpctarget/*
  160. -Fu/usr/lib/codetyphon/fpc/units/$fpctarget/rtl
  161. #-Fu~/fpc/packages/base/*/units/;~/fpc/fcl/units/;~/fpc/rtl/units/
  162.  
  163. # searchpath for libraries
  164. #ifdef cpux86_64
  165. -Fl/usr/lib/x86_64-linux-gnu
  166. -Fl/lib/x86_64-linux-gnu
  167. #endif
  168.  
  169. #ifdef cpui386
  170. -Fl/usr/lib/i386-linux-gnu
  171. -Fl/lib/i386-linux-gnu
  172. #endif
  173.  
  174. #-Fl/pp/lib
  175. #-Fl/lib;/usr/lib
  176.  
  177. # searchpath for tools
  178. -FD/usr/lib/codetyphon/fpc/bin/$FPCTARGET
  179. -FD/usr/lib/codetyphon/fpc/bin/i386-linux/
  180.  
  181.  
  182. # -------------
  183. # Linking
  184. # -------------
  185.  
  186. # generate always debugging information for GDB (slows down the compiling
  187. # process)
  188. # -gc generate checks for pointers
  189. # -gd use dbx
  190. # -gg use gsym
  191. # -gh use heap trace unit (for memory leak debugging)
  192. # -gl use line info unit to show more info for backtraces
  193. # -gv generates programs tracable with valgrind
  194. # -gw generate dwarf debugging info
  195. #
  196. # Enable debuginfo and use the line info unit by default
  197. #-gl
  198.  
  199. # always pass an option to the linker
  200. #-k-s
  201.  
  202. # Always strip debuginfo from the executable
  203. -Xs
  204.  
  205.  
  206. # -------------
  207. # Miscellaneous
  208. # -------------
  209.  
  210. # Write always a nice FPC logo ;)
  211. # -l
  212.  
  213. # Verbosity
  214. # e : Show errors (default) d : Show debug info
  215. # w : Show warnings u : Show unit info
  216. # n : Show notes t : Show tried/used files
  217. # h : Show hints c : Show conditionals
  218. # i : Show general info d : Show debug info
  219. # l : Show linenumbers r : Rhide/GCC compatibility mode
  220. # a : Show everything x : Executable info (Win32 only)
  221. # b : Write file names messages with full path
  222. # v : write fpcdebug.txt with p : Write tree.log with parse tree
  223. # lots of debugging info
  224. #
  225. # Display Info, Warnings and Notes
  226. #-viwn
  227. # If you don't want so much verbosity use
  228. -vw
  229.  
  230. #
  231. # That's all folks
  232. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement