When I build with the nicely provided make system after running scompxx on an xsd, it build with compiler flags set to "-g -O2". Yet I haven't been able to grep or find where these flags come from. I want to be able to compile in Debug and Release configurations; debug with the -g and release with -O3. Where to look?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I build with the nicely provided make system after running scompxx on an xsd, it build with compiler flags set to "-g -O2". Yet I haven't been able to grep or find where these flags come from. I want to be able to compile in Debug and Release configurations; debug with the -g and release with -O3. Where to look?
The simplest way is to export the CXXFLAGS environment variable:
$ export CXXFLAGS='-g -O3'
$ scompxx example.xsd
Best Regards
Paweł Stawicki