2
<!DOCTYPE CodeBlocks_compiler_options>
3
<CodeBlocks_compiler_options>
4
<if platform="windows">
5
<Program name="C" value="mingw32-gdc.exe"/>
6
<Program name="CPP" value="mingw32-gdc.exe"/>
7
<Program name="LD" value="mingw32-gdc.exe"/>
8
<Program name="DBGconfig" value="gdb_debugger:Default"/>
9
<Program name="LIB" value="ar.exe"/>
10
<Program name="WINDRES" value="windres.exe"/>
11
<Program name="MAKE" value="mingw32-make.exe"/>
14
<Program name="C" value="gdc"/>
15
<Program name="CPP" value="gdc"/>
16
<Program name="LD" value="gdc"/>
17
<Program name="DBGconfig" value="gdb_debugger:Default"/>
18
<Program name="LIB" value="ar"/>
19
<Program name="WINDRES" value=""/>
20
<Program name="MAKE" value="make"/>
23
<Switch name="includeDirs" value="-I"/>
24
<Switch name="libDirs" value="-L"/>
25
<Switch name="linkLibs" value="-l"/>
26
<Switch name="defines" value="-fversion="/>
27
<Switch name="genericSwitch" value="-"/>
28
<Switch name="objectExtension" value="o"/>
29
<Switch name="needDependencies" value="true"/>
30
<Switch name="forceCompilerUseQuotes" value="false"/>
31
<Switch name="forceLinkerUseQuotes" value="false"/>
32
<Switch name="logging" value="default"/>
33
<Switch name="libPrefix" value="lib"/>
34
<Switch name="libExtension" value="a"/>
35
<Switch name="linkerNeedsLibPrefix" value="false"/>
36
<Switch name="linkerNeedsLibExtension" value="false"/>
38
<Option name="Produce debugging symbols"
41
checkAgainst="-O -O1 -O2 -O3 -Os"
42
checkMessage="You have optimizations enabled. This is Not A Good Thing(tm) when producing debugging symbols..."
44
<if platform="windows">
45
<Option name="Profile code when executed"
48
additionalLibs="-pg -lgmon"
52
<Option name="Profile code when executed"
59
<Category name="Warnings">
60
<Option name="Enable all compiler warnings (overrides every other setting)"
63
<Option name="Enable standard compiler warnings"
65
<Option name="Stop compiling after first error"
66
option="-Wfatal-errors"/>
67
<Option name="Inhibit all warning messages"
69
supersedes="-Wall -W -pedantic -Wmain"/>
70
<Option name="Enable warnings demanded by strict ISO C and ISO C++"
72
<Option name="Treat as errors the warnings demanded by strict ISO C and ISO C++"
73
option="-pedantic-errors"/>
74
<Option name="Warn if main() is not conformant"
78
<Category name="D features">
79
<Option name="generate documentation"
81
<Option name="allow deprecated features"
82
option="-fdeprecated"/>
83
<Option name="compile in debug code"
85
<Option name="inline expand functions"
86
option="-finline-functions"/>
87
<Option name="compile release version, which means not generating code for contracts and asserts"
89
supersedes="-funittest"/>
90
<Option name="compile in unittest code, also turns on asserts"
92
supersedes="-frelease"/>
95
<Common name="optimization"/>
97
<Common name="architecture"/>
99
<Command name="CompileObject"
100
value="$compiler $options $includes -c $file -o $object"/>
101
<Command name="GenDependencies"
102
value="$compiler -MM $options -MF $dep_object -MT $object $includes $file"/>
103
<Command name="CompileResource"
104
value="$rescomp $res_includes $res_options -J rc -O coff -i $file -o $resource_output"/>
105
<Command name="LinkConsoleExe"
106
value="$linker $libdirs -o $exe_output $link_objects $link_resobjects $link_options $libs"/>
107
<if platform="windows">
108
<Command name="LinkExe"
109
value="$linker $libdirs -o $exe_output $link_objects $link_resobjects $link_options $libs -mwindows"/>
110
<Command name="LinkDynamic"
111
value="$linker -shared -Wl,--output-def=$def_output -Wl,--out-implib=$static_output -Wl,--dll $libdirs $link_objects $link_resobjects -o $exe_output $link_options $libs"/>
114
<Command name="LinkExe"
115
value="$linker $libdirs -o $exe_output $link_objects $link_resobjects $link_options $libs"/>
116
<Command name="LinkDynamic"
117
value="$linker -shared $libdirs $link_objects $link_resobjects -o $exe_output $link_options $libs"/>
119
<Command name="LinkNative"
120
value="$linker $libdirs -o $exe_output $link_objects $link_resobjects $link_options $libs"/>
121
<Command name="LinkStatic"
122
value="$lib_linker -r $static_output $link_objects\nranlib $static_output"/>
124
<RegEx name="Fatal error"
127
<![CDATA[FATAL:[ \t]*(.*)]]>
129
<RegEx name="'Instantiated from here' info"
134
<![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t]+([iI]nstantiated from here.*)]]>
136
<RegEx name="Resource compiler error"
141
<![CDATA[windres.exe:[ \t]([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t](.*)]]>
143
<RegEx name="Resource compiler error"
148
<![CDATA[windres.exe:[ \t]([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t](.*)]]>
150
<RegEx name="Resource compiler error (2)"
153
<![CDATA[windres.exe:[ \t](.*)]]>
155
<RegEx name="Preprocessor warning"
160
<![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):([0-9]+):[ \t]([Ww]arning:[ \t].*)]]>
162
<RegEx name="Preprocessor error"
167
<![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t](.*)]]>
169
<RegEx name="Compiler warning"
174
<![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t]([Ww]arning:[ \t].*)]]>
176
<RegEx name="Compiler error"
181
<![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t](.*)]]>
183
<RegEx name="Linker error"
188
<![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t](.*)]]>
190
<RegEx name="Linker error (2)"
194
<![CDATA[[][{}() \t#%$~[:alnum:]&_:+/\.-]+\(.text\+[0-9A-Za-z]+\):([ \tA-Za-z0-9_:+/\.-]+):[ \t](.*)]]>
196
<RegEx name="Linker error (lib not found)"
200
<![CDATA[.*(ld.*):[ \t](cannot find.*)]]>
202
<RegEx name="Undefined reference"
206
<![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):[ \t](undefined reference.*)]]>
208
<RegEx name="General warning"
211
<![CDATA[([Ww]arning:[ \t].*)]]>
213
</CodeBlocks_compiler_options>