In the work bowl of a food processor or the bowl of a stand mixer, combine the flour, sugar, and salt on low speed. Add the diced butter. In a food processor, pulse the machine until the butter is fully incorporated, then run it until the dough begins to ball together. This can take 1 to 2 minutes, but it will come together. In a stand mixer, lock the top in place and mix on low speed until the butter is in smaller pieces, then raise the speed slightly and mix until the butter and flour are evenly combined, scraping down the bowl as needed.