Add `legacy` build to the perf suite and ensure `belt` is assigned the correct value.