you cannot set a umask in a way that will toggle the x flag
I s'pose it depends on what you mean by toggle. Only programs like compilers set execute permission on in the first place. The umask can only remove permissions that the original utility sets, it can't add them.