I think you should reverse the logic because LINKCMD is usually set in the common [Environment] section to point to optlink. If it is not overwritten in [Environment64], it will also not use the LINKCMD64 setting. So, try LINKCMD64 first, if it isn't set, use LINKCMD.