fpc.cft 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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. # -St allow static keyword in objects
  68. #
  69. # Allow goto, inline, C-operators, C-vars
  70. -Sgic
  71. # ---------------
  72. # Code generation
  73. # ---------------
  74. # Uncomment the next line if you always want static/dynamic units by default
  75. # (can be overruled with -CD, -CS at the commandline)
  76. #-CS
  77. #-CD
  78. # Set the default heapsize to 8Mb
  79. #-Ch8000000
  80. # Set default codegeneration checks (iocheck, overflow, range, stack)
  81. #-Ci
  82. #-Co
  83. #-Cr
  84. #-Ct
  85. # Optimizer switches for i386 compiler
  86. # -Os generate smaller code
  87. # -O1 level 1 optimizations (quick optimizations)
  88. # -O2 level 2 optimizations (-O1 + slower optimizations)
  89. # -O3 level 3 optimizations (same as -O2u)
  90. # -Oa=N set alignment to N
  91. # -OoX switch on optimalization X.
  92. # -OoNOX switch off optimalization X.
  93. # X is one of REGVAR UNCERTAIN STACKFRAME PEEPHOLE ASMCSE LOOPUNROLL
  94. # -OpCPU set target processor.
  95. # CPU is one of 386, PENTIUM, PENTIUM2, PENTIUM3, PENTIUM4, PENTIUMM
  96. # -----------------------
  97. # Set Filenames and Paths
  98. # -----------------------
  99. # Both slashes and backslashes are allowed in paths
  100. # path to the messagefile, not necessary anymore but can be used to override
  101. # the default language
  102. #-Fr%basepath%/msg/errore.msg
  103. #-Fr%basepath%/msg/errorn.msg
  104. #-Fr%basepath%/msg/errores.msg
  105. #-Fr%basepath%/msg/errord.msg
  106. #-Fr%basepath%/msg/errorr.msg
  107. # path to the gcclib
  108. #-Fl%basepath%/lib
  109. # searchpath for includefiles
  110. #-Fi/pp/inc;/pp/rtl/inc
  111. # searchpath for includefiles
  112. # release them only if you know what you do
  113. # because this could cause a rebuild of the runtime library
  114. # if you tell them compiler/ide to build the project (FK)
  115. #-Fi%basepath%/source/rtl/inc;%basepath%/source/rtl/i386
  116. # searchpath for objectfiles
  117. #-Fo%basepath%/source/rtl/inc;%basepath%/source/rtl/i386
  118. # searchpath for units and other system dependent things
  119. -Fu%basepath%/units/$FPCTARGET/
  120. -Fu%basepath%/units/$FPCTARGET/*
  121. -Fu%basepath%/units/$FPCTARGET/rtl
  122. # searchpath for libraries
  123. #-Fl%basepath%/lib
  124. #-Fl/lib;/usr/lib
  125. # searchpath for tools
  126. -FD%basepath%/bin/$FPCTARGET
  127. # binutils prefix for cross compiling
  128. #IFDEF FPC_CROSSCOMPILING
  129. -XP$FPCTARGET-
  130. #ENDIF
  131. # -------------
  132. # Linking
  133. # -------------
  134. # generate always debugging information for GDB (slows down the compiling
  135. # process)
  136. # -gc generate checks for pointers
  137. # -gd use dbx
  138. # -gg use gsym
  139. # -gh use heap trace unit (for memory leak debugging)
  140. # -gl use line info unit to show more info for backtraces
  141. # -gv generates programs tracable with valgrind
  142. # -gw generate dwarf debugging info
  143. #
  144. # Enable debuginfo and use the line info unit by default
  145. #-gl
  146. # always pass an option to the linker
  147. #-k-s
  148. # Always strip debuginfo from the executable
  149. -Xs
  150. # -------------
  151. # Miscellaneous
  152. # -------------
  153. # Write always a nice FPC logo ;)
  154. -l
  155. # Verbosity
  156. # e : Show errors (default) d : Show debug info
  157. # w : Show warnings u : Show unit info
  158. # n : Show notes t : Show tried/used files
  159. # h : Show hints m : Show defined macros
  160. # i : Show general info p : Show compiled procedures
  161. # l : Show linenumbers c : Show conditionals
  162. # a : Show everything 0 : Show nothing (except errors)
  163. # b : Show all procedure r : Rhide/GCC compatibility mode
  164. # declarations if an error x : Executable info (Win32 only)
  165. # occurs
  166. #
  167. # Display Info, Warnings, Notes and Hints
  168. -viwn
  169. # If you don't want so much verbosity use
  170. #-vw