translate-c: --verbose-cimport prints clang command

This commit is contained in:
Andrew Kelley 2018-12-20 19:56:24 -05:00
parent fa6c7c1303
commit 56fedbb524
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -4776,6 +4776,14 @@ Error parse_h_file(ImportTableEntry *import, ZigList<ErrorMsg *> *errors, const
clang_argv.append(target_file);
if (codegen->verbose_cimport) {
fprintf(stderr, "clang");
for (size_t i = 0; i < clang_argv.length; i += 1) {
fprintf(stderr, " %s", clang_argv.at(i));
}
fprintf(stderr, "\n");
}
// to make the [start...end] argument work
clang_argv.append(nullptr);