<isset property="env.TOOL_CHAIN" />\r
<then>\r
<property name="ToolChain" value="${env.TOOL_CHAIN}"/>\r
- <property name="ExtraArgus" value="-Wno-pointer-sign" />\r
</then>\r
<else>\r
<!-- Default Tool Chain is Microsoft Visual Studio -->\r
<property name="ToolChain" value="msvc"/>\r
- <property name="ExtraArgus" value="" />\r
</else>\r
</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