Closed dazKind closed 9 years ago
Originally the options.txt were in flux, flow was passing them around. But since hxcpp has nailed that down, the passing of the options on cli from flow was not needed. Earlier today I had already removed this so the error shouldn't present on git versions of haxe.
It should still probably be patched to support the -
in the regex though.
If it is a valid haxe-define, it should not break the tool. Tweaking the regex seems like a good idea.
On Fri, Aug 7, 2015 at 2:47 AM, Sven Bergström notifications@github.com wrote:
originally the options.txt were in flux, flow was passing them around. But since hxcpp has nailed that down, the passing of the options on cli from flow was not needed. Earlier today I had already removed this https://github.com/underscorediscovery/flow/commit/466ff602b3cccd3d2390a72c8dc2d6787f215663 so the error shouldn't present on git versions of haxe.
It should still probably be packed to support the - in the regex though.
— Reply to this email directly or view it on GitHub https://github.com/HaxeFoundation/hxcpp/issues/262#issuecomment-128471834 .
I have a flow project which results in the following Options.txt:
When flow generates a cmdline for hxcpp to be run it adds
arch-32=1
and the rest after the defines. hxcpp wont parse this option and fail with an error.Upon review I found the cause to be a regexp in
/tools/BuildTool.hx
@ line 992:~/^[a-zA-Z0-9_]*=/
. This regexp is missing a "-". If I add it & rebuild hxcpp all is fine and works as expected.