File tree Expand file tree Collapse file tree 4 files changed +7
-0
lines changed
Expand file tree Collapse file tree 4 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ generic_includes(symtab2gb)
77
88target_link_libraries (symtab2gb
99 util
10+ ansi-c
1011 goto-programs
1112 json-symtab-language )
1213
Original file line number Diff line number Diff line change 44 # Empty last line
55
66OBJ += \
7+ ../ansi-c/ansi-c$(LIBEXT ) \
78 ../util/util$(LIBEXT ) \
89 ../goto-programs/goto-programs$(LIBEXT ) \
910 ../big-int/big-int$(LIBEXT ) \
Original file line number Diff line number Diff line change 22json-symtab-language
33langapi
44goto-programs
5+ ansi-c
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ Author: Diffblue Ltd.
1212#include < iostream>
1313#include < string>
1414
15+ #include < ansi-c/ansi_c_language.h>
16+
1517#include < goto-programs/goto_convert_functions.h>
1618#include < goto-programs/goto_model.h>
1719#include < goto-programs/link_goto_model.h>
@@ -113,6 +115,8 @@ int symtab2gb_parse_optionst::doit()
113115 gb_filename = cmdline.get_value (SYMTAB2GB_OUT_FILE_OPT);
114116 }
115117 register_language (new_json_symtab_language);
118+ // Workaround to allow external front-ends to use "C" mode
119+ register_language (new_ansi_c_language);
116120 config.set (cmdline);
117121 run_symtab2gb (symtab_filenames, gb_filename);
118122 return CPROVER_EXIT_SUCCESS;
You can’t perform that action at this time.
0 commit comments