Skip to content

Instantly share code, notes, and snippets.

@tong
Created February 2, 2013 12:30
Show Gist options
  • Save tong/4697089 to your computer and use it in GitHub Desktop.
Save tong/4697089 to your computer and use it in GitHub Desktop.
NativeClient toolchain file for HXCPP
<!-- NativeClient hxcpp toolchain -->
<xml>
<include name="gcc-toolchain.xml"/>
<path name="${NACL_SDK_ROOT}/toolchain/linux_x86_newlib/bin"/>
<set name="M" value="32" unless="HXCPP_M64" />
<set name="M" value="64" if="HXCPP_M64" />
<set name="OBJ_PATH" value="obj/NaCl${M}${OBJEXT}/" />
<compilerflag value="-I/home/tong/dev/haxelib/hxcpp/2,10/include"/>
<compiler id="nacl" exe="i686-nacl-g++" if="nacl">
<flag value="-I${HXCPP}/include"/>
<flag value="-O0"/>
<flag value="-g"/>
<flag value="-pthread"/>
<!--
<flag value="-std=gnu++0x"/>
<flag value="-std=gnu++98"/>
<flag value="-Wno-long-long"/>
<flag value="-Wall"/>
<flag value="-Wswitch-enum"/>
<flag value="-pedantic"/>
<flag value="-Werror"/>
-->
<flag value="-fvisibility=hidden"/>
<flag value="-fpic"/>
<flag value="-fPIC"/>
<flag value="-x"/>
<flag value="c++"/>
<flag value="-frtti"/>
<flag value="-Dhaxe_210"/>
<!--
<flag value="-O2"/>
-->
<flag value="-Wno-unknown-pragmas"/>
<flag value="-DHX_LINUX"/>
<flag value="-DHXCPP_VISIT_ALLOCS"/>
<include name="common-defines.xml" />
<flag value="-DHXCPP_M64" if="HXCPP_M64"/>
<flag value="-c"/>
<flag value="-m${M}"/>
<objdir value="${OBJ_PATH}"/>
<outflag value="-o"/>
<ext value=".o"/>
</compiler>
<linker id="nacl" exe="i686-nacl-g++" if="nacl">
<flag value="-O0"/>
<flag value="-g"/>
<!--
<flag value="-std=gnu++98"/>
<flag value="-Wno-long-long"/>
<flag value="-Wall"/>
<flag value="-Wswitch-enum"/>
<flag value="-pedantic"/>
<flag value="-Werror"/>
-->
<flag value="-pthread"/>
<!--
<flag value="-fvisibility=hidden"/>
<flag value="-O2"/>
<flag value="-fpic"/>
<flag value="-fPIC"/>
<flag value="-x"/>
<flag value="c++"/>
<flag value="-frtti"/>
<flag value="-Dhaxe_210"/>
-->
<lib name="-lppapi_cpp"/>
<lib name="-lppapi"/>
<flag value="-m${M}"/>
<objdir value="${OBJ_PATH}"/>
<ext value=".nexe"/>
<outflag value="-o "/>
</linker>
</xml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment