Skip to content

translate-c prints to stderr rather than sending error bundle to parent process, resulting in terminal warnings #25431

@andrewrk

Description

@andrewrk

Among other problems, this causes translate-c warnings to be detected as failures by the build system, such as:

warning: TODO: implement 'visibility' attribute for functions [-Wattribute-todo]

Instead, it should follow a similar code path as CObject.Diag.Bundle.parse in the clang execution logic. This way, warnings can be ignored when doing translate-c and errors can be integrated properly with other Compilation errors during @cImport.

This is a follow-up task from #24497.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSolving this issue will likely involve adding new logic or components to the codebase.regressionIt worked in a previous version of Zig, but stopped working.translate-cC to Zig source translation feature (@cImport)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions