xcode - Disable C++ optimisation -


i learning c++ prefer compiler without optimisation see how things work (yeah, mean copy elision). using xcode question flags , set them disable optimisations preferably whole project?

i set -fno-elide-constructors in build phase->compile sources described in

https://developer.apple.com/library/mac/recipes/xcode_help-project_editor/articles/adding%20a%20compiler%20flag%20to%20a%20file.html

it not ideal solution works , helpful others.