update t2
support compile on-demand
add t3 the on-demand example