update buybuild.cpp