How to let Eclipse run different targets before starting / debugging

I am developing a C ++ application in Eclipse with a CDT plugin using my own Makefile. Is there a way to get Eclipse to start make allbefore I start the project, but make debugbefore trying to debug it? I want the application to be compiled with -gswitch during debugging, but with -O3, when I run it, without having to manually rewrite the switch -gin the Makefile every time.

thank

+3
source share
1 answer

++ "Makefile Project" ( , Makefile), "Build configuration" :

Project > Build Configurations > Manage ...

"", "", "Release" "Default", " ".
, / :

Project > Build Configurations > Set active > ...

, ! .

+3

All Articles