Split custom ReactOS-only non-standard extensions from NTDDSND.H
[reactos.git] / reactos / ReactOS-i386.rbuild
index 65dc559..68b6afa 100644 (file)
        <define name="_M_IX86" />
        <define name="_X86_" />
        <define name="__i386__" />
+       <define name="TARGET_i386" host="true" />
 
-       <property name="NTOSKRNL_SHARED" value="-Wl,--file-alignment,0x1000 -Wl,--section-alignment,0x1000 -nostartfiles -shared"/>
+       <define name="USE_COMPILER_EXCEPTIONS" />
 
-       <if property="GDB" value="0">
-               <if property="OPTIMIZE" value="1">
-                               <compilerflag>-Os</compilerflag>
-                               <compilerflag>-ftracer</compilerflag>
-                               <compilerflag>-momit-leaf-frame-pointer</compilerflag>
-                               <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
-               </if>
-               <if property="OPTIMIZE" value="2">
-                               <compilerflag>-Os</compilerflag>
-                               <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
-               </if>
-               <if property="OPTIMIZE" value="3">
-                               <compilerflag>-O1</compilerflag>
-                               <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
-               </if>
-               <if property="OPTIMIZE" value="4">
-                               <compilerflag>-O2</compilerflag>
-                               <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
-               </if>
-               <if property="OPTIMIZE" value="5">
-                               <compilerflag>-O3</compilerflag>
-                               <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
-               </if>
+       <property name="NTOSKRNL_SHARED" value="-file-alignment=0x1000 -section-alignment=0x1000 -shared"/>
+
+       <if property="OPTIMIZE" value="1">
+               <compilerflag>-Os</compilerflag>
+               <compilerflag>-ftracer</compilerflag>
+               <compilerflag>-momit-leaf-frame-pointer</compilerflag>
+       </if>
+       <if property="OPTIMIZE" value="2">
+               <compilerflag>-Os</compilerflag>
+       </if>
+       <if property="OPTIMIZE" value="3">
+               <compilerflag>-O1</compilerflag>
+       </if>
+       <if property="OPTIMIZE" value="4">
+               <compilerflag>-O2</compilerflag>
+       </if>
+       <if property="OPTIMIZE" value="5">
+               <compilerflag>-O3</compilerflag>
        </if>
 
+       <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
+       <compilerflag>-fno-strict-aliasing</compilerflag>
        <compilerflag>-Wno-strict-aliasing</compilerflag>
        <compilerflag>-Wpointer-arith</compilerflag>
+       <!-- compilerflag>-H</compilerflag>    enable this for header traces -->
+       <linkerflag>-disable-stdcall-fixup</linkerflag>
 
 </project>