1.Project->Options->C++Compiler 右边Build Configuration 选择 Release,点击Apply选择optionset文件(第四步中保存optionset文件)
2.Project->Options->C++Linker 右边Dynamic RTL配置为false
3.Project->Options->Packages:Build with runtime packages 取消,点击OK
4.Project->Configuration Manager->Configuration 选择 Release
然后重新编译,将生成Release目录