fpc.cft 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. #
  2. # Config file generated by fpcmkcfg on %BUILDDATE% - %BUILDTIME%
  3. # Example fpc.cfg for Free Pascal Compiler
  4. #
  5. # ----------------------
  6. # Defines (preprocessor)
  7. # ----------------------
  8. #
  9. # nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE, #UNDEF are allowed
  10. #
  11. # -d is the same as #DEFINE
  12. # -u is the same as #UNDEF
  13. #
  14. #
  15. # Some examples (for switches see below, and the -? helppages)
  16. #
  17. # Try compiling with the -dRELEASE or -dDEBUG on the commandline
  18. #
  19. # For a release compile with optimizes and strip debuginfo
  20. #IFDEF RELEASE
  21. -O2
  22. -Xs
  23. #WRITE Compiling Release Version
  24. #ENDIF
  25. # For a debug version compile with debuginfo and all codegeneration checks on
  26. #IFDEF DEBUG
  27. -glh
  28. -Crtoi
  29. #WRITE Compiling Debug Version
  30. #ENDIF
  31. # ----------------
  32. # Parsing switches
  33. # ----------------
  34. # Pascal language mode
  35. # -Mfpc free pascal dialect (default)
  36. # -Mobjfpc switch some Delphi 2 extensions on
  37. # -Mdelphi tries to be Delphi compatible
  38. # -Mtp tries to be TP/BP 7.0 compatible
  39. # -Mgpc tries to be gpc compatible
  40. # -Mmacpas tries to be compatible to the macintosh pascal dialects
  41. #
  42. # Turn on Object Pascal extensions by default
  43. #-Mobjfpc
  44. # Assembler reader mode
  45. # -Rdefault use default assembler
  46. # -Ratt read AT&T style assembler
  47. # -Rintel read Intel style assembler
  48. #
  49. # All assembler blocks are AT&T styled by default
  50. #-Ratt
  51. # Semantic checking
  52. # -S2 same as -Mobjfpc
  53. # -Sc supports operators like C (*=,+=,/= and -=)
  54. # -Sa include assertion code.
  55. # -Sd same as -Mdelphi
  56. # -Se<x> compiler stops after the <x> errors (default is 1)
  57. # -Sg allow LABEL and GOTO
  58. # -Sh Use ansistrings
  59. # -Si support C++ styled INLINE
  60. # -SI<x> set interface style to <x>
  61. # -SIcomCOM compatible interface (default)
  62. # -SIcorbaCORBA compatible interface
  63. # -Sm support macros like C (global)
  64. # -So same as -Mtp
  65. # -Sp same as -Mgpc
  66. # -Ss constructor name must be init (destructor must be done)
  67. #
  68. # Allow goto, inline, C-operators, C-vars
  69. -Sgic
  70. # ---------------
  71. # Code generation
  72. # ---------------
  73. # Uncomment the next line if you always want static/dynamic units by default
  74. # (can be overruled with -CD, -CS at the commandline)
  75. #-CS
  76. #-CD
  77. # Set the default heapsize to 8Mb
  78. #-Ch8000000
  79. # Set default codegeneration checks (iocheck, overflow, range, stack)
  80. #-Ci
  81. #-Co
  82. #-Cr
  83. #-Ct
  84. # Optimizer switches for i386 compiler
  85. # -Os generate smaller code
  86. # -O1 level 1 optimizations (quick optimizations)
  87. # -O2 level 2 optimizations (-O1 + slower optimizations)
  88. # -O3 level 3 optimizations (same as -O2u)
  89. # -Oa=N set alignment to N
  90. # -OoX switch on optimalization X.
  91. # -OoNOX switch off optimalization X.
  92. # X is one of REGVAR UNCERTAIN STACKFRAME PEEPHOLE ASMCSE LOOPUNROLL
  93. # -OpCPU set target processor.
  94. # CPU is one of 386, PENTIUM, PENTIUM2, PENTIUM3, PENTIUM4, PENTIUMM
  95. # -----------------------
  96. # Set Filenames and Paths
  97. # -----------------------
  98. # Both slashes and backslashes are allowed in paths
  99. # path to the messagefile, not necessary anymore but can be used to override
  100. # the default language
  101. #-Fr%basepath%/msg/errore.msg
  102. #-Fr%basepath%/msg/errorn.msg
  103. #-Fr%basepath%/msg/errores.msg
  104. #-Fr%basepath%/msg/errord.msg
  105. #-Fr%basepath%/msg/errorr.msg
  106. # searchpath for units and other system dependent things
  107. -Fu%basepath%/units/$FPCTARGET/
  108. -Fu%basepath%/units/$FPCTARGET/*
  109. -Fu%basepath%/units/$FPCTARGET/rtl
  110. #IFDEF FPCAPACHE_1_13
  111. -Fu%basepath%/units/$FPCTARGET/httpd13/
  112. #ELSE
  113. #IFDEF FPCAPACHE_2_0
  114. -Fu%basepath%/units/$FPCTARGET/httpd20
  115. #ELSE
  116. -Fu%basepath%/units/$FPCTARGET/httpd22
  117. #ENDIF
  118. #ENDIF
  119. # path to the gcclib
  120. %gcclibpath%
  121. # searchpath for libraries
  122. #-Fl%basepath%/lib
  123. #-Fl/lib;/usr/lib
  124. # searchpath for tools
  125. -FD%basepath%/bin/$FPCTARGET
  126. %NEEDCROSSBINUTILSIFDEF%
  127. # binutils prefix for cross compiling
  128. #IFDEF FPC_CROSSCOMPILING
  129. #IFDEF NEEDCROSSBINUTILS
  130. -XP$FPCTARGET-
  131. #ENDIF
  132. #ENDIF
  133. # -------------
  134. # Linking
  135. # -------------
  136. # generate always debugging information for GDB (slows down the compiling
  137. # process)
  138. # -gc generate checks for pointers
  139. # -gd use dbx
  140. # -gg use gsym
  141. # -gh use heap trace unit (for memory leak debugging)
  142. # -gl use line info unit to show more info for backtraces
  143. # -gv generates programs tracable with valgrind
  144. # -gw generate dwarf debugging info
  145. #
  146. # Enable debuginfo and use the line info unit by default
  147. #-gl
  148. # always pass an option to the linker
  149. #-k-s
  150. # Always strip debuginfo from the executable
  151. -Xs
  152. # -------------
  153. # Miscellaneous
  154. # -------------
  155. # Write always a nice FPC logo ;)
  156. -l
  157. # Verbosity
  158. # e : Show errors (default) d : Show debug info
  159. # w : Show warnings u : Show unit info
  160. # n : Show notes t : Show tried/used files
  161. # h : Show hints m : Show defined macros
  162. # i : Show general info p : Show compiled procedures
  163. # l : Show linenumbers c : Show conditionals
  164. # a : Show everything 0 : Show nothing (except errors)
  165. # b : Show all procedure r : Rhide/GCC compatibility mode
  166. # declarations if an error x : Executable info (Win32 only)
  167. # occurs
  168. #
  169. # Display Info, Warnings, Notes and Hints
  170. -viwn
  171. # If you don't want so much verbosity use
  172. #-vw