Skip to content

Commit

Permalink
Use exp.architecture for SV-COMP preprocessing
Browse files Browse the repository at this point in the history
Avoids a large number or CIL warnings about mismatching types.
  • Loading branch information
sim642 committed Oct 4, 2023
1 parent b6dfb14 commit 11164fd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/maingoblint.ml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,15 @@ let preprocess_files () =
(* Preprocessor flags *)
let cppflags = ref (get_string_list "pre.cppflags") in

if get_bool "ana.sv-comp.enabled" then (
let architecture_flag = match get_string "exp.architecture" with
| "32bit" -> "-m32"
| "64bit" -> "-m64"
| _ -> assert false
in
cppflags := architecture_flag :: !cppflags
);

(* the base include directory *)
(* TODO: any better way? dune executable promotion doesn't add _build sites *)
let source_lib_dirs =
Expand Down

0 comments on commit 11164fd

Please sign in to comment.