2
0

fpc.cft 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. # Config file generated by fpcmkcfg on %BUILDDATE% - %BUILDTIME%
  2. # Example fpc.cfg for Free Pascal Compiler
  3. #
  4. # ----------------------
  5. # Defines (preprocessor)
  6. # ----------------------
  7. #
  8. # nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE, #UNDEF are allowed
  9. #
  10. # -d is the same as #DEFINE
  11. # -u is the same as #UNDEF
  12. #
  13. #
  14. # Some examples (for switches see below, and the -? helppages)
  15. #
  16. # Try compiling with the -dRELEASE or -dDEBUG on the commandline
  17. #
  18. # For a release compile with optimizes and strip debuginfo
  19. #IFDEF RELEASE
  20. -OG2p3
  21. -Xs
  22. #WRITE Compiling Release Version
  23. #ENDIF
  24. # For a debug version compile with debuginfo and all codegeneration checks on
  25. #IFDEF DEBUG
  26. -g
  27. -Crtoi
  28. #WRITE Compiling Debug Version
  29. #ENDIF
  30. # ----------------
  31. # Parsing switches
  32. # ----------------
  33. # All assembler blocks are intel styled by default
  34. #-Rintel
  35. # All assembler blocks are AT&T styled by default
  36. #-Ratt
  37. # All assembler blocks are directly copied to asm
  38. #-Rdirect
  39. # Semantic checking
  40. # -S2 switch some Delphi 2 extensions on
  41. # -Sc supports operators like C (*=,+=,/= and -=)
  42. # -Sd tries to be Delphi compatible
  43. # -Se<x> compiler stops after the <x> errors (default is 1)
  44. # -Sg allow LABEL and GOTO
  45. # -Sh Use ansistrings
  46. # -Si support C++ styled INLINE
  47. # -Sm support macros like C (global)
  48. # -So tries to be TP/BP 7.0 compatible
  49. # -Sp tries to be gpc compatible
  50. # -Ss constructor name must be init (destructor must be done)
  51. # -St allow static keyword in objects
  52. # Allow goto, inline, C-operators
  53. -Sgic
  54. # ---------------
  55. # Code generation
  56. # ---------------
  57. # Uncomment the next line if you always want static/dynamic units by default
  58. # (can be overruled with -CD, -CS at the commandline)
  59. #-CS
  60. #-CD
  61. # Set the default heapsize to 8Mb
  62. #-Ch8000000
  63. # Set default codegeneration checks (iocheck, overflow, range, stack)
  64. #-Ci
  65. #-Co
  66. #-Cr
  67. #-Ct
  68. # Optimizer switches
  69. # -Og generate smaller code
  70. # -OG generate faster code (default)
  71. # -Or keep certain variables in registers (still BUGGY!!!)
  72. # -Ou enable uncertain optimizations (see docs)
  73. # -O1 level 1 optimizations (quick optimizations)
  74. # -O2 level 2 optimizations (-O1 + slower optimizations)
  75. # -O3 level 3 optimizations (same as -O2u)
  76. # -Op target processor
  77. # -Op1 set target processor to 386/486
  78. # -Op2 set target processor to Pentium/PentiumMMX (tm)
  79. # -Op3 set target processor to PPro/PII/c6x86/K6 (tm)
  80. # Optimize always for Size and PentiumII
  81. #-Og2p3
  82. # -----------------------
  83. # Set Filenames and Paths
  84. # -----------------------
  85. # Both slashes and backslashes are allowed in paths
  86. # path to the messagefile, not necessary anymore but can be used to override
  87. # the default language
  88. #-Fr%basepath%/msg/errore.msg
  89. #-Fr%basepath%/msg/errorn.msg
  90. #-Fr%basepath%/msg/errores.msg
  91. #-Fr%basepath%/msg/errord.msg
  92. #-Fr%basepath%/msg/errorr.msg
  93. # path to the gcclib
  94. #-Fl%basepath%/lib
  95. # searchpath for includefiles
  96. # release them only if you know what you do
  97. # because this could cause a rebuild of the runtime library
  98. # if you tell them compiler/ide to build the project (FK)
  99. #-Fi%basepath%/source/rtl/inc;%basepath%/source/rtl/i386
  100. # searchpath for objectfiles
  101. #-Fo%basepath%/source/rtl/inc;%basepath%/source/rtl/i386
  102. # searchpath for units and other system dependent things
  103. -Fu%basepath%/units/$FPCTARGET/
  104. -Fu%basepath%/units/$FPCTARGET/*
  105. -Fu%basepath%/units/$FPCTARGET/rtl
  106. # searchpath for libraries
  107. #-Fl%basepath%/lib
  108. #-Fl/lib;/usr/lib
  109. # searchpath for tools
  110. -FD%basepath%/bin/$FPCTARGET
  111. # -------------
  112. # Linking
  113. # -------------
  114. # generate always debugging information for GDB (slows down the compiling
  115. # process)
  116. #-gl
  117. # always pass an option to the linker
  118. #-k-s
  119. # Always strip debuginfo from the executable
  120. -Xs
  121. # -------------
  122. # Miscellaneous
  123. # -------------
  124. # Write always a nice FPC logo ;)
  125. -l
  126. # Verbosity
  127. # e : Show errors (default) d : Show debug info
  128. # w : Show warnings u : Show used files
  129. # n : Show notes t : Show tried files
  130. # h : Show hints m : Show defined macros
  131. # i : Show general info p : Show compiled procedures
  132. # l : Show linenumbers c : Show conditionals
  133. # a : Show everything 0 : Show nothing (except errors)
  134. # Display Info, Warnings, Notes and Hints
  135. -viwn
  136. # If you don't want so much verbosity use
  137. #-vw