connectedhomeip icon indicating copy to clipboard operation
connectedhomeip copied to clipboard

Placeholder apps perform several codegens in the same output directory

Open andy31415 opened this issue 2 years ago • 0 comments

Reproduction steps

Code in zap_rengen_all says:

            # The name zap-generated is to make includes clear by using
            # a name like <zap-generated/foo.h>
            output_dir = os.path.join(
                'zzz_generated', 'placeholder', example_name, 'zap-generated')
            template = 'examples/placeholder/templates/templates.json'

            targets.append(ZAPGenerateTarget(filepath, output_dir=output_dir))
            targets.append(
                ZAPGenerateTarget(filepath, output_dir=output_dir, template=template))
            continue

This makes the same output directory be used for 2 separate generations. Ideally we should only have a single output directory.

andy31415 avatar Oct 21 '22 15:10 andy31415