premake/premake-core

Problems with selective file level optimizations and debug symbols on

オープン

#116 opened on 2015/06/16

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)C (651 件のフォーク)auto 404
enhancementhelp wantedvs20xx

Repository metrics

Stars
 (3,621 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド