mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 02:29:12 +02:00
* updated configuration file template (aligned to fpcmkcfg/fpc.cft where appropriate)
git-svn-id: trunk@29491 -
This commit is contained in:
parent
2da5e0b65c
commit
4cf24d98cb
@ -846,6 +846,22 @@ defaultcfg=
|
|||||||
# Parsing switches
|
# Parsing switches
|
||||||
# ----------------
|
# ----------------
|
||||||
|
|
||||||
|
# Pascal language mode
|
||||||
|
# -Mfpc free pascal dialect (default)
|
||||||
|
# -Mobjfpc switch some Delphi 2 extensions on
|
||||||
|
# -Mdelphi tries to be Delphi compatible
|
||||||
|
# -Mtp tries to be TP/BP 7.0 compatible
|
||||||
|
# -Mgpc tries to be gpc compatible
|
||||||
|
# -Mmacpas tries to be compatible to the macintosh pascal dialects
|
||||||
|
#
|
||||||
|
# Turn on Object Pascal extensions by default
|
||||||
|
#-Mobjfpc
|
||||||
|
|
||||||
|
# Assembler reader mode
|
||||||
|
# -Rdefault use default assembler
|
||||||
|
# -Ratt read AT&T style assembler
|
||||||
|
# -Rintel read Intel style assembler
|
||||||
|
#
|
||||||
# All assembler blocks are intel styled by default
|
# All assembler blocks are intel styled by default
|
||||||
#-Rintel
|
#-Rintel
|
||||||
|
|
||||||
@ -856,19 +872,29 @@ defaultcfg=
|
|||||||
#-Rdirect
|
#-Rdirect
|
||||||
|
|
||||||
# Semantic checking
|
# Semantic checking
|
||||||
# -S2 switch some Delphi 2 extensions on
|
# -S2 same as -Mobjfpc
|
||||||
# -Sc supports operators like C (*=,+=,/= and -=)
|
# -Sa include assertion code.
|
||||||
# -Sd tries to be Delphi compatible
|
# -Sc supports operators like C (*=,+=,/= and -=)
|
||||||
# -Se<x> compiler stops after the <x> errors (default is 1)
|
# -Sd same as -Mdelphi
|
||||||
# -Sg allow LABEL and GOTO
|
# -Se<x> error options. <x> is a combination of the following:
|
||||||
# -Sh Use ansistrings
|
# <n> : compiler stops after <n> errors (default is 1)
|
||||||
# -Si support C++ styled INLINE
|
# w : compiler stops also after warnings
|
||||||
# -Sm support macros like C (global)
|
# n : compiler stops also after notes
|
||||||
# -So tries to be TP/BP 7.0 compatible
|
# h : compiler stops also after hints
|
||||||
# -Sp tries to be gpc compatible
|
# -Sg allow LABEL and GOTO
|
||||||
# -Ss constructor name must be init (destructor must be done)
|
# -Sh Use ansistrings
|
||||||
# -St allow static keyword in objects
|
# -Si support C++ styled INLINE
|
||||||
# Allow goto, inline, C-operators
|
# -Sk load fpcylix unit
|
||||||
|
# -SI<x> set interface style to <x>
|
||||||
|
# -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
|
-Sgic
|
||||||
|
|
||||||
# ---------------
|
# ---------------
|
||||||
@ -890,9 +916,21 @@ defaultcfg=
|
|||||||
#-Ct
|
#-Ct
|
||||||
|
|
||||||
# Optimizer switches
|
# Optimizer switches
|
||||||
# -O1 level 1 optimizations (quick and debugger friendly)
|
# -Os generate smaller code
|
||||||
# -O2 level 2 optimizations (-O1 + quick optimizations)
|
# -Oa=N set alignment to N
|
||||||
# -O3 level 3 optimizations (-O2 + slow optimizations)
|
# -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
|
||||||
|
|
||||||
|
|
||||||
# -----------------------
|
# -----------------------
|
||||||
@ -909,6 +947,8 @@ defaultcfg=
|
|||||||
#-Fr%basepath%/msg/errord.msg
|
#-Fr%basepath%/msg/errord.msg
|
||||||
#-Fr%basepath%/msg/errorr.msg
|
#-Fr%basepath%/msg/errorr.msg
|
||||||
|
|
||||||
|
# search path for unicode binary files
|
||||||
|
-FM%basepath%/unicode/
|
||||||
# path to the gcclib
|
# path to the gcclib
|
||||||
#-Fl%basepath%/lib
|
#-Fl%basepath%/lib
|
||||||
|
|
||||||
@ -926,12 +966,42 @@ defaultcfg=
|
|||||||
-Fu%basepath%/units/%fpctargetmacro%/*
|
-Fu%basepath%/units/%fpctargetmacro%/*
|
||||||
-Fu%basepath%/units/%fpctargetmacro%/rtl
|
-Fu%basepath%/units/%fpctargetmacro%/rtl
|
||||||
|
|
||||||
|
#ifdef cpui8086
|
||||||
|
-Fu%basepath%/units/%fpctargetmacro%/$fpcsubarch-$fpcmemorymodel
|
||||||
|
-Fu%basepath%/units/%fpctargetmacro%/$fpcsubarch-$fpcmemorymodel/*
|
||||||
|
-Fu%basepath%/units/%fpctargetmacro%/$fpcsubarch-$fpcmemorymodel/rtl
|
||||||
|
#endif
|
||||||
|
|
||||||
# searchpath for libraries
|
# searchpath for libraries
|
||||||
#-Fl%basepath%/lib
|
#-Fl%basepath%/lib
|
||||||
#-Fl/lib;/usr/lib
|
#-Fl/lib;/usr/lib
|
||||||
|
|
||||||
# searchpath for tools
|
# searchpath for tools
|
||||||
-FD%basepath%/bin/%fpctargetmacro%
|
-FD%basepath%/bin/%fpctargetmacro%
|
||||||
|
# never need cross-prefix when targeting the JVM
|
||||||
|
# (no native compiler, always cross-compiling)
|
||||||
|
#ifdef cpujvm
|
||||||
|
#undef NEEDCROSSBINUTILS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
# for android cross-prefix is set by compiler
|
||||||
|
#ifdef android
|
||||||
|
#undef NEEDCROSSBINUTILS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
# never need cross-prefix when targeting the i8086
|
||||||
|
# (no native compiler, always cross-compiling)
|
||||||
|
#ifdef cpui8086
|
||||||
|
#undef NEEDCROSSBINUTILS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
# binutils prefix for cross compiling
|
||||||
|
#IFDEF FPC_CROSSCOMPILING
|
||||||
|
#IFDEF NEEDCROSSBINUTILS
|
||||||
|
-XP$FPCTARGET-
|
||||||
|
#ENDIF
|
||||||
|
#ENDIF
|
||||||
|
|
||||||
|
|
||||||
# -------------
|
# -------------
|
||||||
# Linking
|
# Linking
|
||||||
@ -939,6 +1009,15 @@ defaultcfg=
|
|||||||
|
|
||||||
# generate always debugging information for GDB (slows down the compiling
|
# generate always debugging information for GDB (slows down the compiling
|
||||||
# process)
|
# process)
|
||||||
|
# -gc generate checks for pointers
|
||||||
|
# -gd use dbx
|
||||||
|
# -gg use gsym
|
||||||
|
# -gh use heap trace unit (for memory leak debugging)
|
||||||
|
# -gl use line info unit to show more info for backtraces
|
||||||
|
# -gv generates programs tracable with valgrind
|
||||||
|
# -gw generate dwarf debugging info
|
||||||
|
#
|
||||||
|
# Enable debuginfo and use the line info unit by default
|
||||||
#-gl
|
#-gl
|
||||||
|
|
||||||
# always pass an option to the linker
|
# always pass an option to the linker
|
||||||
@ -947,6 +1026,13 @@ defaultcfg=
|
|||||||
# Always strip debuginfo from the executable
|
# Always strip debuginfo from the executable
|
||||||
-Xs
|
-Xs
|
||||||
|
|
||||||
|
# Always use smartlinking on i8086, because the system unit exceeds the 64kb
|
||||||
|
# code limit
|
||||||
|
#ifdef cpui8086
|
||||||
|
-CX
|
||||||
|
-XX
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
# -------------
|
# -------------
|
||||||
# Miscellaneous
|
# Miscellaneous
|
||||||
@ -956,15 +1042,19 @@ defaultcfg=
|
|||||||
-l
|
-l
|
||||||
|
|
||||||
# Verbosity
|
# Verbosity
|
||||||
# e : Show errors (default) d : Show debug info
|
# e : Show errors (default) d : Show debug info
|
||||||
# w : Show warnings u : Show used files
|
# w : Show warnings u : Show unit info
|
||||||
# n : Show notes t : Show tried files
|
# n : Show notes t : Show tried/used files
|
||||||
# h : Show hints m : Show defined macros
|
# h : Show hints s : Show time stamps
|
||||||
# i : Show general info p : Show compiled procedures
|
# i : Show general info q : Show message numbers
|
||||||
# l : Show linenumbers c : Show conditionals
|
# l : Show linenumbers c : Show conditionals
|
||||||
# a : Show everything 0 : Show nothing (except errors)
|
# a : Show everything 0 : Show nothing (except errors)
|
||||||
|
# b : Write file names messages r : Rhide/GCC compatibility mode
|
||||||
# Display Info, Warnings, Notes and Hints
|
# 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 and Notes
|
||||||
-viwn
|
-viwn
|
||||||
# If you don't want so much verbosity use
|
# If you don't want so much verbosity use
|
||||||
#-vw
|
#-vw
|
||||||
|
Loading…
Reference in New Issue
Block a user