premake/premake-core

Problems with selective file level optimizations and debug symbols on

Aberta

#116 aberto em 16 de jun. de 2015

 (1 comentário) (0 reação) (0 responsável)C (651 forks)auto 404
enhancementhelp wantedvs20xx

Métricas do repositório

Stars
 (3.621 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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

Guia do colaborador