~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/plugins/compilergcc/resources/compilers/options_gdc.xml

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::Blocks 16.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
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"/>
 
12
    </if>
 
13
    <else>
 
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"/>
 
21
    </else>
 
22
 
 
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"/>
 
37
 
 
38
    <Option name="Produce debugging symbols"
 
39
            option="-g"
 
40
            category="Debugging"
 
41
            checkAgainst="-O -O1 -O2 -O3 -Os"
 
42
            checkMessage="You have optimizations enabled. This is Not A Good Thing(tm) when producing debugging symbols..."
 
43
            supersedes="-s"/>
 
44
    <if platform="windows">
 
45
        <Option name="Profile code when executed"
 
46
                option="-pg"
 
47
                category="Profiling"
 
48
                additionalLibs="-pg -lgmon"
 
49
                supersedes="-s"/>
 
50
    </if>
 
51
    <else>
 
52
        <Option name="Profile code when executed"
 
53
                option="-pg"
 
54
                category="Profiling"
 
55
                additionalLibs="-pg"
 
56
                supersedes="-s"/>
 
57
    </else>
 
58
 
 
59
    <Category name="Warnings">
 
60
        <Option name="Enable all compiler warnings (overrides every other setting)"
 
61
                option="-Wall"
 
62
                supersedes="-w"/>
 
63
        <Option name="Enable standard compiler warnings"
 
64
                option="-W"/>
 
65
        <Option name="Stop compiling after first error"
 
66
                option="-Wfatal-errors"/>
 
67
        <Option name="Inhibit all warning messages"
 
68
                option="-w"
 
69
                supersedes="-Wall -W -pedantic -Wmain"/>
 
70
        <Option name="Enable warnings demanded by strict ISO C and ISO C++"
 
71
                option="-pedantic"/>
 
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"
 
75
                option="-Wmain"/>
 
76
    </Category>
 
77
 
 
78
    <Category name="D features">
 
79
        <Option name="generate documentation"
 
80
                option="-fdoc"/>
 
81
        <Option name="allow deprecated features"
 
82
                option="-fdeprecated"/>
 
83
        <Option name="compile in debug code"
 
84
                option="-fdebug"/>
 
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"
 
88
                option="-frelease"
 
89
                supersedes="-funittest"/>
 
90
        <Option name="compile in unittest code, also turns on asserts"
 
91
                option="-funittest"
 
92
                supersedes="-frelease"/>
 
93
    </Category>
 
94
 
 
95
    <Common name="optimization"/>
 
96
 
 
97
    <Common name="architecture"/>
 
98
 
 
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"/>
 
112
    </if>
 
113
    <else>
 
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"/>
 
118
    </else>
 
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"/>
 
123
 
 
124
    <RegEx name="Fatal error"
 
125
           type="error"
 
126
           msg="1">
 
127
        <![CDATA[FATAL:[ \t]*(.*)]]>
 
128
    </RegEx>
 
129
    <RegEx name="'Instantiated from here' info"
 
130
           type="normal"
 
131
           msg="3"
 
132
           file="1"
 
133
           line="2">
 
134
        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t]+([iI]nstantiated from here.*)]]>
 
135
    </RegEx>
 
136
    <RegEx name="Resource compiler error"
 
137
           type="error"
 
138
           msg="3"
 
139
           file="1"
 
140
           line="2">
 
141
        <![CDATA[windres.exe:[ \t]([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t](.*)]]>
 
142
    </RegEx>
 
143
    <RegEx name="Resource compiler error"
 
144
           type="error"
 
145
           msg="3"
 
146
           file="1"
 
147
           line="2">
 
148
        <![CDATA[windres.exe:[ \t]([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t](.*)]]>
 
149
    </RegEx>
 
150
    <RegEx name="Resource compiler error (2)"
 
151
           type="error"
 
152
           msg="1">
 
153
        <![CDATA[windres.exe:[ \t](.*)]]>
 
154
    </RegEx>
 
155
    <RegEx name="Preprocessor warning"
 
156
           type="warning"
 
157
           msg="4"
 
158
           file="1"
 
159
           line="2">
 
160
        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):([0-9]+):[ \t]([Ww]arning:[ \t].*)]]>
 
161
    </RegEx>
 
162
    <RegEx name="Preprocessor error"
 
163
           type="error"
 
164
           msg="3"
 
165
           file="1"
 
166
           line="2">
 
167
        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t](.*)]]>
 
168
    </RegEx>
 
169
    <RegEx name="Compiler warning"
 
170
           type="warning"
 
171
           msg="3"
 
172
           file="1"
 
173
           line="2">
 
174
        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t]([Ww]arning:[ \t].*)]]>
 
175
    </RegEx>
 
176
    <RegEx name="Compiler error"
 
177
           type="error"
 
178
           msg="3"
 
179
           file="1"
 
180
           line="2">
 
181
        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t](.*)]]>
 
182
    </RegEx>
 
183
    <RegEx name="Linker error"
 
184
           type="error"
 
185
           msg="3"
 
186
           file="1"
 
187
           line="2">
 
188
        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t](.*)]]>
 
189
    </RegEx>
 
190
    <RegEx name="Linker error (2)"
 
191
           type="error"
 
192
           msg="2"
 
193
           file="1">
 
194
        <![CDATA[[][{}() \t#%$~[:alnum:]&_:+/\.-]+\(.text\+[0-9A-Za-z]+\):([ \tA-Za-z0-9_:+/\.-]+):[ \t](.*)]]>
 
195
    </RegEx>
 
196
    <RegEx name="Linker error (lib not found)"
 
197
           type="error"
 
198
           msg="2"
 
199
           file="1">
 
200
        <![CDATA[.*(ld.*):[ \t](cannot find.*)]]>
 
201
    </RegEx>
 
202
    <RegEx name="Undefined reference"
 
203
           type="error"
 
204
           msg="2"
 
205
           file="1">
 
206
        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):[ \t](undefined reference.*)]]>
 
207
    </RegEx>
 
208
    <RegEx name="General warning"
 
209
           type="warning"
 
210
           msg="1">
 
211
        <![CDATA[([Ww]arning:[ \t].*)]]>
 
212
    </RegEx>
 
213
</CodeBlocks_compiler_options>