Skip to content

Commit

Permalink
Make 29-svcomp/36-svcomp-arch multilib detection more precise
Browse files Browse the repository at this point in the history
Also handles missing gcc-multilib on Linux, e.g. in opam docker.
There's no conf-* package for gcc-multilib.
  • Loading branch information
sim642 committed Nov 28, 2024
1 parent 0df4d86 commit eb9ee51
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/regression/29-svcomp/dune
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@

(cram
(applies_to 36-svcomp-arch)
(enabled_if (<> %{system} macosx))) ; https://dune.readthedocs.io/en/stable/reference/boolean-language.html
(enabled_if %{read:../../util/multilibAvailable})) ; https://dune.readthedocs.io/en/stable/reference/boolean-language.html
7 changes: 6 additions & 1 deletion tests/util/dune
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
(executables
(names yamlWitnessStrip yamlWitnessStripDiff)
(names yamlWitnessStrip yamlWitnessStripDiff multilibConfigure)
(libraries
batteries.unthreaded
goblint-cil
goblint_std
goblint_lib
yaml
goblint.sites.dune
goblint.build-info.dune)
(flags :standard -open Goblint_std)
(preprocess (pps ppx_deriving.std)))

(rule
(target multilibAvailable)
(action (with-stdout-to %{target} (run ./multilibConfigure.exe))))
4 changes: 4 additions & 0 deletions tests/util/multilibConfigure.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
open GoblintCil

let () =
Printf.printf "%B" (Option.is_some GoblintCil.Machdep.gcc32 && Option.is_some GoblintCil.Machdep.gcc64)

0 comments on commit eb9ee51

Please sign in to comment.