You could knit it on a tube knitting machine capable of adjusting loop count/circumference freely.
But for a T-Shirt you have very fine knitting, so regular knitting machines can at best do newborn-sized T-Shirts.
If anyone happens to know where I could order a dozen shirts knitted to spec based on knit design rules and published-by-them loop-pitch-after-first-wash from cotton, I'd love to hear.