When using the mac toolchain to compile .mm files, HXCPP_CPP11 is ignored by hxcpp, so no -std=c++11 flag is added to the build. Since there is already a lot of duplication between cppflags and mmflags, it might be worth considering enabling all cppflags in objective c++ compilation, perhaps with an attribute to turn that off per flag.
See:
|
<cppflag value="-std=c++11" if="HXCPP_CPP11"/> |
When using the mac toolchain to compile .mm files,
HXCPP_CPP11is ignored by hxcpp, so no-std=c++11flag is added to the build. Since there is already a lot of duplication betweencppflags andmmflags, it might be worth considering enabling allcppflags in objective c++ compilation, perhaps with an attribute to turn that off per flag.See:
hxcpp/toolchain/mac-toolchain.xml
Line 29 in be7ef02