765
769
while j<=length(more) do
770
if UnsetBool(More, j) then
771
exclude(initglobalswitches,cs_gdb_dbx)
773
include(initglobalswitches,cs_gdb_dbx);
777
if UnsetBool(More, j) then
778
exclude(initglobalswitches,cs_gdb_gsym)
780
include(initglobalswitches,cs_gdb_gsym);
775
{ ignore for compatibility,
776
the code for dbx and gsym is broken }
877
DefaultReplacements(More);
880
878
{$IFDEF USE_SYSUTILS}
882
d := SplitPath(More);
883
OutputFile := SplitFileName(More);
880
OutputFile:=SplitFileName(More);
881
OutputExtension:=SplitExtension(More);
885
882
{$ELSE USE_SYSUTILS}
886
Fsplit(More,d,OutputFile,e)
883
FSplit(More,D,OutputFile,OutputExtension);
887
884
{$ENDIF USE_SYSUTILS}
886
OutputExeDir:=FixPath(D,True);
889
889
IllegalPara(opt);
1187
1189
DefaultReplacements(rlinkpath);
1192
'L' : begin // -XLO is link order -XLA is link alias. -XLD avoids load defaults.
1193
// these are not aggregable.
1194
if (j=length(more)) or not (more[j+1] in ['O','A','D']) then
1200
s:=Copy(more,3,length(More)-2);
1201
if not LinkLibraryAliases.AddDep(s) Then
1205
s:=Copy(more,3,length(More)-2);
1206
if not LinkLibraryOrder.AddWeight(s) Then
1209
'D' : include(initglobalswitches,cs_link_no_default_lib_order)
1192
1218
def_system_macro('FPC_LINK_STATIC');
1286
1317
Option_read:=false;
1287
1318
If FileLevel>MaxLevel then
1288
1319
Message(option_too_many_cfg_files);
1320
{ Maybe It's Directory ?} //Jaro Change:
1321
if DirectoryExists(filename) then
1323
Message1(option_config_is_dir,filename);
1290
1327
Message1(option_using_file,filename);
1328
{$ifdef USE_SYSUTILS}
1329
assign(f,ExpandFileName(filename));
1330
{$else USE_SYSUTILS}
1291
1331
assign(f,FExpand(filename));
1332
{$endif USE_SYsUTILS}
1764
1807
def_system_macro('VER'+version_nr+'_'+release_nr+'_'+patch_nr);
1766
1809
{ Temporary defines, until things settle down }
1767
def_system_macro('HASWIDECHAR');
1768
def_system_macro('HASWIDESTRING');
1769
def_system_macro('HASOUT');
1770
def_system_macro('HASGLOBALPROPERTY');
1771
def_system_macro('FPC_HASPREFETCH');
1772
def_system_macro('FPC_LINEEND_IN_TEXTREC');
1773
def_system_macro('FPC_ALIGNSRTTI');
1774
def_system_macro('FPC_HASNOFARPOINTER');
1775
def_system_macro('FPC_HASUSERDATA32');
1777
def_system_macro('HASINTF');
1778
def_system_macro('HASVARIANT');
1781
def_system_macro('HASINTF');
1782
def_system_macro('HASVARIANT');
1785
def_system_macro('HASINTF');
1786
def_system_macro('HASVARIANT');
1787
def_system_macro('FPC_MTFSB0_CORRECTED');
1790
def_system_macro('HASINTF');
1791
def_system_macro('HASVARIANT');
1794
def_system_macro('HASINTF');
1795
def_system_macro('HASVARIANT');
1797
def_system_macro('INTERNSETLENGTH');
1798
def_system_macro('INTERNLENGTH');
1799
def_system_macro('INTERNCOPY');
1800
def_system_macro('INT64FUNCRESOK');
1801
def_system_macro('HAS_ADDR_STACK_ON_STACK');
1802
def_system_macro('NOBOUNDCHECK');
1803
def_system_macro('HASCOMPILERPROC');
1804
def_system_macro('INTERNCONSTINTF');
1805
def_system_macro('VALUEGETMEM');
1806
def_system_macro('VALUEFREEMEM');
1807
def_system_macro('HASCURRENCY');
1808
def_system_macro('HASTHREADVAR');
1809
def_system_macro('HAS_GENERICCONSTRUCTOR');
1810
def_system_macro('NOCLASSHELPERS');
1810
def_system_macro('COMPPROCINLINEFIXED');
1811
{ "main" symbol is generated in the main program, and left out of the system unit }
1812
def_system_macro('FPC_DARWIN_PASCALMAIN');
1811
1814
if pocall_default = pocall_register then
1812
1815
def_system_macro('REGCALL');
1813
def_system_macro('DECRREFNOTNIL');
1814
def_system_macro('HAS_INTERNAL_INTTYPES');
1815
def_system_macro('STR_USES_VALINT');
1816
def_system_macro('NOSAVEREGISTERS');
1817
def_system_macro('SHORTSTRCOMPAREINREG');
1818
def_system_macro('HASGETHEAPSTATUS');
1819
def_system_macro('HASGETFPCHEAPSTATUS');
1820
def_system_macro('HASFUNCTIONCOPYDYNARR');
1821
def_system_macro('HASOVERLOADASSIGNBYUNIQUERESULT');
1823
1817
{ using a case is pretty useless here (FK) }
1824
1818
{ some stuff for TP compatibility }
1826
1820
def_system_macro('CPU86');
1827
1821
def_system_macro('CPU87');
1822
def_system_macro('CPU386');
1830
1825
def_system_macro('CPU68');
2141
2137
if assigned(option) then
2145
$Log: options.pas,v $
2146
Revision 1.175 2005/05/05 14:53:55 florian
2147
+ output of supported instruction sets in info page
2149
Revision 1.174 2005/04/28 19:32:11 florian
2150
* overloading of assignment operator by different unique result types now possible
2152
Revision 1.173 2005/04/24 21:01:37 peter
2153
* always use exceptions to stop the compiler
2154
- remove stop, do_stop
2156
Revision 1.172 2005/04/15 15:43:54 peter
2157
* -Fe on commandline redirects now all output
2159
Revision 1.171 2005/03/20 22:36:45 olle
2160
* Cleaned up handling of source file extension.
2161
+ Added support for .p extension for macos and darwin
2163
Revision 1.170 2005/03/05 16:37:42 florian
2164
* fixed copy(dyn. array,...);
2166
Revision 1.169 2005/03/04 16:49:22 peter
2167
* getheapstatus fixes
2169
Revision 1.168 2005/02/26 15:43:09 florian
2170
* userdata in file/textrecs now 32 bytes
2172
Revision 1.167 2005/02/19 18:32:16 florian
2173
* defaultreplacement expansion for -XP and -Xr
2175
Revision 1.166 2005/02/19 18:10:57 florian
2176
* cross compiliation defines
2178
Revision 1.165 2005/02/14 17:13:06 peter
2181
Revision 1.164 2005/02/06 21:33:28 peter
2182
* -Fa option added, it'll load the units before the uses
2183
line is parsed. Can be used to load cthreads from the commandline.
2184
Example '-g -Faheaptrc,lineinfo' is the same as '-ghl'
2186
Revision 1.163 2005/02/05 10:24:17 florian
2187
*** empty log message ***
2189
Revision 1.162 2005/01/20 17:05:53 peter
2190
* use val() for decoding integers
2192
Revision 1.161 2005/01/09 20:24:43 olle
2193
* rework of macro subsystem
2194
+ exportable macros for mode macpas
2196
Revision 1.160 2005/01/08 23:14:50 peter
2197
* Allow #include ~/.fpc.cfg
2199
Revision 1.159 2005/01/04 16:19:52 florian
2200
* arm sets FPUFPA by default for now
2202
Revision 1.158 2005/01/03 20:27:47 peter
2203
fix outline of 3rd level of options (-SI option mainly)