Move gcc -g and -Wall options out of rbuild and into .rbuild files
[reactos.git] / reactos / ReactOS-i386.rbuild
1 <?xml version="1.0"?>
2 <!DOCTYPE project SYSTEM "tools/rbuild/project.dtd">
3 <project name="ReactOS" makefile="makefile.auto" xmlns:xi="http://www.w3.org/2001/XInclude">
4 <xi:include href="config.rbuild">
5 <xi:fallback>
6 <xi:include href="config.template.rbuild" />
7 </xi:fallback>
8 </xi:include>
9
10 <xi:include href="ReactOS-generic.rbuild" />
11
12 <define name="_M_IX86" />
13 <define name="_X86_" />
14 <define name="__i386__" />
15 <define name="TARGET_i386" host="true" />
16
17 <define name="USE_COMPILER_EXCEPTIONS" />
18
19 <property name="NTOSKRNL_SHARED" value="-file-alignment=0x1000 -section-alignment=0x1000 -shared"/>
20 <property name="PLATFORM" value="PC"/>
21
22 <group compilerset="gcc">
23 <if property="OPTIMIZE" value="1">
24 <compilerflag>-Os</compilerflag>
25 <compilerflag>-ftracer</compilerflag>
26 <compilerflag>-momit-leaf-frame-pointer</compilerflag>
27 </if>
28 <if property="OPTIMIZE" value="2">
29 <compilerflag>-Os</compilerflag>
30 </if>
31 <if property="OPTIMIZE" value="3">
32 <compilerflag>-O1</compilerflag>
33 </if>
34 <if property="OPTIMIZE" value="4">
35 <compilerflag>-O2</compilerflag>
36 </if>
37 <if property="OPTIMIZE" value="5">
38 <compilerflag>-O3</compilerflag>
39 </if>
40
41 <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
42 <compilerflag>-fno-strict-aliasing</compilerflag>
43 <compilerflag>-Wno-strict-aliasing</compilerflag>
44 <compilerflag>-Wpointer-arith</compilerflag>
45 <compilerflag>-Wno-multichar</compilerflag>
46
47 <compilerflag>-gstabs+</compilerflag>
48 <!-- compilerflag>-H</compilerflag> enable this for header traces -->
49 </group>
50
51 <group compilerset="msc">
52 <if property="OPTIMIZE" value="1">
53 <compilerflag>/O1</compilerflag>
54 </if>
55 <if property="OPTIMIZE" value="2">
56 <compilerflag>/O2</compilerflag>
57 </if>
58 <if property="OPTIMIZE" value="3">
59 <compilerflag>/Ox /GS-</compilerflag>
60 <compilerflag>/Ot</compilerflag>
61 </if>
62 <if property="OPTIMIZE" value="4">
63 <compilerflag>/Ox /GS-</compilerflag>
64 <compilerflag>/Os</compilerflag>
65 </if>
66 <if property="OPTIMIZE" value="5">
67 <compilerflag>/Ox /GS-</compilerflag>
68 <compilerflag>/Os</compilerflag>
69 <compilerflag>/Ob2</compilerflag>
70 <compilerflag>/GF</compilerflag>
71 <compilerflag>/Gy</compilerflag>
72 </if>
73
74 <compilerflag>/GS-</compilerflag>
75 </group>
76
77 <compilerflag compiler="as">-gstabs+</compilerflag>
78
79 <group linkerset="ld">
80 <linkerflag>-disable-stdcall-fixup</linkerflag>
81 </group>
82
83 <define name="_USE_32BIT_TIME_T" />
84 </project>