Clang's optimizer spends an really long time on these tests at -O2, so use
-O1 instead. This reduces the -j32 time for lib/googletest/test from 131s
to 71s. Building without debug info saves an additional 10-15% of the build
time, so we only enable debug info if DEBUG_FLAGS is not empty (71s -> 64s
at -j32).
TODO: -O0 reduces the time to 29s, so maybe we should default to that?