diff options
Diffstat (limited to 'utils/fpcmkcfg/fpc.cft')
-rw-r--r-- | utils/fpcmkcfg/fpc.cft | 74 |
1 files changed, 47 insertions, 27 deletions
diff --git a/utils/fpcmkcfg/fpc.cft b/utils/fpcmkcfg/fpc.cft index aec969a906..681514f179 100644 --- a/utils/fpcmkcfg/fpc.cft +++ b/utils/fpcmkcfg/fpc.cft @@ -29,11 +29,17 @@ # For a debug version compile with debuginfo and all codegeneration checks on #IFDEF DEBUG - -glh + -gl -Crtoi #WRITE Compiling Debug Version #ENDIF +# assembling +#ifdef darwin +# use pipes instead of temporary files for assembling +-ap +#endif + # ---------------- # Parsing switches # ---------------- @@ -62,17 +68,23 @@ # -Sc supports operators like C (*=,+=,/= and -=) # -Sa include assertion code. # -Sd same as -Mdelphi -# -Se<x> compiler stops after the <x> errors (default is 1) +# -Se<x> error options. <x> is a combination of the following: +# <n> : compiler stops after <n> errors (default is 1) +# w : compiler stops also after warnings +# n : compiler stops also after notes +# h : compiler stops also after hints # -Sg allow LABEL and GOTO # -Sh Use ansistrings # -Si support C++ styled INLINE +# -Sk load fpcylix unit # -SI<x> set interface style to <x> -# -SIcomCOM compatible interface (default) -# -SIcorbaCORBA compatible interface +# -SIcom COM compatible interface (default) +# -SIcorba CORBA compatible interface # -Sm support macros like C (global) # -So same as -Mtp # -Sp same as -Mgpc # -Ss constructor name must be init (destructor must be done) +# -Sx enable exception keywords (default in Delphi/ObjFPC modes) # # Allow goto, inline, C-operators, C-vars -Sgic @@ -95,18 +107,22 @@ #-Cr #-Ct -# Optimizer switches for i386 compiler +# Optimizer switches # -Os generate smaller code -# -O1 level 1 optimizations (quick optimizations) -# -O2 level 2 optimizations (-O1 + slower optimizations) -# -O3 level 3 optimizations (same as -O2u) # -Oa=N set alignment to N -# -OoX switch on optimalization X. -# -OoNOX switch off optimalization X. -# X is one of REGVAR UNCERTAIN STACKFRAME PEEPHOLE ASMCSE LOOPUNROLL -# -OpCPU set target processor. -# CPU is one of 386, PENTIUM, PENTIUM2, PENTIUM3, PENTIUM4, PENTIUMM - +# -O1 level 1 optimizations (quick optimizations, debuggable) +# -O2 level 2 optimizations (-O1 + optimizations which make debugging more difficult) +# -O3 level 3 optimizations (-O2 + optimizations which also may make the program slower rather than faster) +# -Oo<x> switch on optimalization x. See fpc -i for possible values +# -OoNO<x> switch off optimalization x. See fpc -i for possible values +# -Op<x> set target cpu for optimizing, see fpc -i for possible values + +#ifdef darwin +#ifdef cpui386 +-Cppentiumm +-Oppentiumm +#endif +#endif # ----------------------- # Set Filenames and Paths @@ -123,20 +139,23 @@ #-Fr%basepath%/msg/errorr.msg # searchpath for units and other system dependent things --Fu%basepath%/units/$FPCTARGET/ --Fu%basepath%/units/$FPCTARGET/* --Fu%basepath%/units/$FPCTARGET/rtl +-Fu%basepath%/units/$fpctarget +-Fu%basepath%/units/$fpctarget/* +-Fu%basepath%/units/$fpctarget/rtl -#IFDEF FPCAPACHE_1_13 --Fu%basepath%/units/$FPCTARGET/httpd13/ +#IFDEF FPCAPACHE_1_3 +-Fu%basepath%/units/$fpctarget/httpd13/ #ELSE #IFDEF FPCAPACHE_2_0 --Fu%basepath%/units/$FPCTARGET/httpd20 +-Fu%basepath%/units/$fpctarget/httpd20 #ELSE --Fu%basepath%/units/$FPCTARGET/httpd22 +-Fu%basepath%/units/$fpctarget/httpd22 #ENDIF #ENDIF +# searchpath for fppkg user-specific packages +-Fu%localbasepath%/units/$FPCTARGET/* + # path to the gcclib %gcclibpath% @@ -192,15 +211,16 @@ # e : Show errors (default) d : Show debug info # w : Show warnings u : Show unit info # n : Show notes t : Show tried/used files -# h : Show hints m : Show defined macros -# i : Show general info p : Show compiled procedures +# h : Show hints s : Show time stamps +# i : Show general info q : Show message numbers # l : Show linenumbers c : Show conditionals # a : Show everything 0 : Show nothing (except errors) -# b : Show all procedure r : Rhide/GCC compatibility mode -# declarations if an error x : Executable info (Win32 only) -# occurs +# b : Write file names messages r : Rhide/GCC compatibility mode +# with full path x : Executable info (Win32 only) +# v : write fpcdebug.txt with p : Write tree.log with parse tree +# lots of debugging info # -# Display Info, Warnings, Notes and Hints +# Display Info, Warnings and Notes -viwn # If you don't want so much verbosity use #-vw |