Switch between Debug and Release build

I have a setup where I can build and debug in VSCode, but how can I switch and build in Release mode ?

Where do you see this release mode in vscode?

I mean how do I compile an optimized -O3, stripped and without debug symbols .update file ?

you can try adding cflag in .cdef:

Or you can add compiler option in mkapp:

Thanks I will try those