That seems estonishing long to me, there must be something special or strange in your program.
You need to give more information.
What part of the compiling process is taking that long ?
When you compile 'normally' (the Run button in the IDE) you will see the different steps of the compiling process with the time needed to do it.
What kind of application is it ?
Best regards.