Usinb build flags in Platformio

I think it’s a problem with the build options but I don’t know where to look in the code to go about changing these options. Even when I try to set the generated .json file to include the proper build flags and then freeze its state, not allowing the rewrite from Platformio, it still creates another .josz file with the incorrect build flags!