[geany/geany] 891997: Add -O2 -g flags also for C++ files when building with waf