Feature request for PER_FILE_C_OPT / PER_FILE_CXX_OPT

Hi,

When working on large codebase project, it would be very helpful if I can overwrite some files with different compiler option. For example, by default I was using Release to build the whole project, but when I want to debug some particular files, if I can use ‘-O0 -g’ only on those particular files instead of rebuild the whole project or submodule, it would save me a lot of rebuilding time and linking time (given that I have been using better linker).

I guess the feature will be similar to Bazel’s --per_file_copt?

Thanks!
CY

Maybe: set_source_files_properties with the right properties?

1 Like

Cool! Thanks! That’s what I need :smile: