Merge pull request #3896 from Vexu/translate-c-2
Translate-c self-hosted var decl and remove translate mode
This commit is contained in:
@@ -23303,7 +23303,7 @@ static IrInstruction *ir_analyze_instruction_c_import(IrAnalyze *ira, IrInstruct
|
||||
const char *resources_path = buf_ptr(ira->codegen->zig_c_headers_dir);
|
||||
|
||||
if ((err = parse_h_file(ira->codegen, &root_node, &errors_ptr, &errors_len,
|
||||
&clang_argv.at(0), &clang_argv.last(), Stage2TranslateModeImport, resources_path)))
|
||||
&clang_argv.at(0), &clang_argv.last(), TranslateModeImport, resources_path)))
|
||||
{
|
||||
if (err != ErrorCCompileErrors) {
|
||||
ir_add_error_node(ira, node, buf_sprintf("C import failed: %s", err_str(err)));
|
||||
|
||||
Reference in New Issue
Block a user