A better question is: why do you want to do this? @build_constraint is mainly used for callbacks (Callbacks · JuMP).
@build_constraint