project-generator / project_generator

Project generators for various embedded tools (IDE). IAR, uVision, Makefile, CoIDE, Eclipse and many more in the roadmap!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for per-file flags

flit opened this issue · comments

Some projects require per-file compiler flags.

This should probably work by allowing a source file entry to be a usual settings dict.

I recall working on some projects that had specific files settings. I always wanted to avoid this (it is hidden from common settings).

The support for all tools will take the most effort.

Yeah, it's a pain. Unfortunately it's needed for some things I'm working on in Research. Currently I'm working around it with a new tool-specific custom_rules setting added in my fork. It accepts a string that is just copied directly into the generated Makefile or CMakeLists.txt.

Just curious if this feature is still in the works.

Not urgent, but we did have a case where we wanted to apply flags to only some files (i.e. enable -Werror for files that have been cleaned up, so they stay clean).

Eric