Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unvirtualize goblint.build-info and goblint.sites #1549

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gobview
Submodule gobview updated 1 files
+0 −2 src/dune
6 changes: 0 additions & 6 deletions src/build-info/build_info_dune/dune

This file was deleted.

5 changes: 0 additions & 5 deletions src/build-info/build_info_js/dune

This file was deleted.

1 change: 0 additions & 1 deletion src/build-info/build_info_js/dune_build_info.ml

This file was deleted.

8 changes: 1 addition & 7 deletions src/build-info/dune
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
(include_subdirs no)

; virtual library to allow js build (for gobview) without dune-build-info
; dune-build-info seems to be incompatible with js_of_ocaml
; File "gobview/src/.App.eobjs/build_info_data.ml-gen", line 1:
; Error: Could not find the .cmi file for interface
; gobview/src/.App.eobjs/build_info_data.ml-gen.
(library
(name goblint_build_info)
(public_name goblint.build-info)
(libraries batteries.unthreaded)
(virtual_modules dune_build_info))
(libraries dune-build-info batteries.unthreaded))

(rule
(target configVersion.ml)
Expand Down
8 changes: 4 additions & 4 deletions src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -88,31 +88,31 @@
(public_names goblint)
(modes byte native) ; https://dune.readthedocs.io/en/stable/dune-files.html#linking-modes
(modules goblint)
(libraries goblint.lib goblint.sites.dune goblint.build-info.dune goblint_std)
(libraries goblint.lib goblint_std)
(preprocess (pps ppx_deriving.std ppx_deriving_hash ppx_deriving_yojson))
(flags :standard -linkall -open Goblint_std)
)

(executable
(name privPrecCompare)
(modules privPrecCompare)
(libraries goblint.lib goblint.sites.dune goblint.build-info.dune goblint_std)
(libraries goblint.lib goblint_std)
(preprocess (pps ppx_deriving.std ppx_deriving_hash ppx_deriving_yojson))
(flags :standard -linkall -open Goblint_std)
)

(executable
(name apronPrecCompare)
(modules apronPrecCompare)
(libraries goblint.lib goblint.sites.dune goblint.build-info.dune goblint_std)
(libraries goblint.lib goblint_std)
(preprocess (pps ppx_deriving.std ppx_deriving_hash ppx_deriving_yojson))
(flags :standard -linkall -open Goblint_std)
)

(executable
(name messagesCompare)
(modules messagesCompare)
(libraries goblint.lib goblint.sites.dune goblint.build-info.dune goblint_std)
(libraries goblint.lib goblint_std)
(preprocess (pps ppx_deriving.std ppx_deriving_hash ppx_deriving_yojson))
(flags :standard -linkall -open Goblint_std)
)
Expand Down
6 changes: 0 additions & 6 deletions src/index.mld
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,9 @@ The following libraries provide [goblint] package metadata for executables.

{2 Library goblint.build-info}
{!modules:Goblint_build_info}
This library is virtual and has the following implementations
- goblint.build-info.dune for native executables,
- goblint.build-info.js for js_of_ocaml executables.

{2 Library goblint.sites}
{!modules:Goblint_sites}
This library is virtual and has the following implementations
- goblint.sites.dune for native executables,
- goblint.sites.js for js_of_ocaml executables.


{1 Independent utilities}
Expand Down
12 changes: 5 additions & 7 deletions src/sites/dune
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
(include_subdirs no)

; virtual library to allow js build (for gobview) without dune-site
; dune-site seems to be incompatible with js_of_ocaml
; File "gobview/src/.App.eobjs/dune_site_data.ml-gen", line 1:
; Error: Could not find the .cmi file for interface
; gobview/src/.App.eobjs/dune_site_data.ml-gen.
(library
(name goblint_sites)
(public_name goblint.sites)
(virtual_modules goblint_sites)
(libraries fpath))
(libraries dune-site fpath))

(generate_sites_module
(module dunesite)
(sites goblint))
File renamed without changes.
12 changes: 0 additions & 12 deletions src/sites/sites_dune/dune

This file was deleted.

6 changes: 0 additions & 6 deletions src/sites/sites_js/dune

This file was deleted.

6 changes: 0 additions & 6 deletions src/sites/sites_js/goblint_sites.ml

This file was deleted.

4 changes: 1 addition & 3 deletions tests/regression/cfg/util/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
goblint_logs
goblint_common
goblint_lib ; TODO: avoid: extract LoopUnrolling and WitnessUtil node predicates from goblint_lib
fpath
goblint.sites.dune
goblint.build-info.dune)
fpath)
(preprocess (pps ppx_deriving.std)))
2 changes: 1 addition & 1 deletion tests/unit/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

(test
(name mainTest)
(libraries ounit2 qcheck-ounit goblint.std goblint.common goblint.lib goblint.constraint goblint.solver goblint.cdomain.value goblint.sites.dune goblint.build-info.dune)
(libraries ounit2 qcheck-ounit goblint.std goblint.common goblint.lib goblint.constraint goblint.solver goblint.cdomain.value)
(preprocess (pps ppx_deriving.std ppx_deriving_hash ppx_deriving_yojson))
(flags :standard -linkall))

Expand Down
4 changes: 1 addition & 3 deletions tests/util/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
batteries.unthreaded
goblint_std
goblint_lib
yaml
goblint.sites.dune
goblint.build-info.dune)
yaml)
(flags :standard -open Goblint_std)
(preprocess (pps ppx_deriving.std)))
Loading