Skip to content

Commit b00e7dc

Browse files
committed
Use cil.cstd option for preprocessing as well
1 parent 53c6393 commit b00e7dc

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/config/options.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@
279279
"cstd": {
280280
"title": "cil.cstd",
281281
"type": "string",
282-
"description": "Specify the c standard used for parsing.",
282+
"description": "Specify the c standard used for preprocessing and parsing.",
283283
"default": "c99",
284284
"enum": [
285285
"c89", "c90",

src/maingoblint.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ let preprocess_files () =
267267
(* Preprocessor flags *)
268268
let cppflags = ref (get_string_list "pre.cppflags") in
269269

270+
cppflags := ("--std=" ^ get_string "cil.cstd") :: !cppflags;
271+
270272
if get_bool "ana.sv-comp.enabled" then (
271273
let architecture_flag = match get_string "exp.architecture" with
272274
| "32bit" -> "-m32"

0 commit comments

Comments
 (0)