Have you taken care to modify the correct construction environments, if in doubt all?
https://docs.platformio.org/en/latest/scripting/construction_environments.html
See Unable to solve error ".o uses VFP register arguments, .elf does not" - #6 by maxgerhardt