Skip to content

Enable --use-header by default and remove the corresponding command-line option.

Mason D. B. requested to merge scythe/vala:wip/issue/713 into master

Just as stated.

The current behavior of valac is to always generate the header file internally and store it if a header_filename has been set. However, ValaCCodeBaseModule.add_symbol_declaration will ignore this header file if --use-header is not enabled and return false, forcing the various generate_*_definition methods to put symbol definitions in the C files.

Here I update ValaCodeContext.use_header to evaluate as true whenever a header file exists, so that add_symbol_declaration and other files that check for a header will behave appropriately.

Edited by Mason D. B.

Merge request reports