The optimize flags are a bit tricky because they can be set per-file and they can be different on different targets.
The easiest way to start would be to just change the "toolchain" files in hxcpp.
These contain lines like:
<flag value="-O2" tag="release" />
You can just change the "O2" and see if you get the desired result.
If you want to take it a bit further, you could do:
<flag value="${MY_OPTIM_FLAG}" tag="release" />
and then set MY_OPTIM_FLAG via something like "haxe -main .... -D MY_OPTIM_FLAG=-O1"
This should get you started.
Hugh