Set the variable compilation-scroll-output to t.