Skip to content

Commit 45f1e4e

Browse files
author
martin
committed
Correctly guard the use of the JSIL language
1 parent 665abf7 commit 45f1e4e

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/goto-analyzer/goto_analyzer_parse_options.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ Author: Daniel Kroening, [email protected]
2424
#include <cpp/cpp_language.h>
2525
#include <cpp/cprover_library.h>
2626

27-
#include <jsil/jsil_language.h>
27+
#ifdef HAVE_JSIL
28+
# include <jsil/jsil_language.h>
29+
#endif
2830

2931
#include <goto-programs/add_malloc_may_fail_variable_initializations.h>
3032
#include <goto-programs/initialize_goto_model.h>
@@ -69,7 +71,10 @@ void goto_analyzer_parse_optionst::register_languages()
6971
{
7072
register_language(new_ansi_c_language);
7173
register_language(new_cpp_language);
74+
75+
#ifdef HAVE_JSIL
7276
register_language(new_jsil_language);
77+
#endif
7378
}
7479

7580
void goto_analyzer_parse_optionst::get_command_line_options(optionst &options)

src/goto-cc/goto_cc_languages.cpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,17 @@ Author: CM Wintersteiger
1515

1616
#include <ansi-c/ansi_c_language.h>
1717
#include <cpp/cpp_language.h>
18-
#include <jsil/jsil_language.h>
18+
19+
#ifdef HAVE_JSIL
20+
# include <jsil/jsil_language.h>
21+
#endif
1922

2023
void goto_cc_modet::register_languages()
2124
{
2225
register_language(new_ansi_c_language);
2326
register_language(new_cpp_language);
27+
28+
#ifdef HAVE_JSIL
2429
register_language(new_jsil_language);
30+
#endif
2531
}

0 commit comments

Comments
 (0)