Update tpa.cpp during build