]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/TianoTools/build.xml
Set different arguments for gcc3.x.x and gcc4.x.x. Suppress pointer-sign warning...
[mirror_edk2.git] / Tools / Source / TianoTools / build.xml
index d17229280916c117cd28d7a2ef5a5cbb9ede3379..982b920e1797239e12c2972992c3c318990ee61f 100644 (file)
@@ -102,6 +102,24 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
         </if>\r
       </then>\r
     </if>\r
+    \r
+    <if>\r
+      <equals arg1="${ToolChain}" arg2="gcc" />\r
+      <then>\r
+        <exec executable="gcc" outputproperty="host.gcc.ver">\r
+          <arg line="-E" />\r
+          <arg line="-P" />\r
+          <arg line="-x c" />\r
+          <arg line="gcc.ver" />\r
+        </exec>\r
+        <if>\r
+          <contains string="${host.gcc.ver}" substring="4" />\r
+          <then>\r
+            <property name="ExtraArgus" value="-Wno-pointer-sign" />\r
+          </then>\r
+        </if>\r
+      </then>\r
+    </if>\r
 \r
     <condition property="linux" value="true">\r
       <os name="Linux"/>\r