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).

貢獻者指南