hxcpp icon indicating copy to clipboard operation
hxcpp copied to clipboard

c++ standard flags are ignored by mac toolchain for objective c++ files

Open tobil4sk opened this issue 4 months ago • 0 comments

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: https://github.com/HaxeFoundation/hxcpp/blob/be7ef02b785cf9cac8377b0ddbeef5026aa65221/toolchain/mac-toolchain.xml#L29

tobil4sk avatar Aug 22 '25 07:08 tobil4sk