clBuildProgram very slow in Visual Studio debugger

I’m running some OpenCL programs under the Visual Studio 2008 (not SP1) debugger, latest drivers and SDK, and clBuildProgram is taking about 10 seconds for each build. When I run the same program outside the debugger, the same code is instantaneous.

What gives?