premake/premake-core

Problems with selective file level optimizations and debug symbols on

开放

#116 创建于 2015年6月16日

 (1 条评论) (0 个反应) (0 位负责人)C (651 个派生)auto 404
enhancementhelp wantedvs20xx

仓库指标

星标
 (3,621 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

If you define (for instance) this at the project level

flags { "Symbols" }

But then define this with a filter on specific source files

flags { "Optimize" }
optimize "Speed"

It is possible to see this error when you build in visual studio.

    cl : Command line error D8016: '/ZI' and '/O2' command-line options are incompatible

The bug seems to be the fact that the function m.clCompileFiles does not call m.debugInformationFormat() at the file level if necessary (if optimization is switched on for specific files).

贡献者指南