Count yourself lucky that your test takes 10 seconds. A partial build on my project takes ~3 minutes to compile + link. A full build is about 3 hours for everything.
I recently cut some link times from 3 minutes to 14 seconds by switching linkers (from bfd to gold doing Android dev.)
...sadly that's still only for a single project x config x arch combination. I still need to play around with incremental linking options that appear off by default...
I had a build that took 25 hours to run once. Never again. The only reason we got any work done is that we ran a 1, 3 and 19 hour part of it in parallel. But I really just wanted to throw out the long part (bad E2E tests) and start over.
...sadly that's still only for a single project x config x arch combination. I still need to play around with incremental linking options that appear off by default...