Skip to content

Commit 75b3883

Browse files
authored
Merge pull request #1206 from goblint/goblint-dune-libs
Organize some general modules into dune libraries
2 parents d9afd55 + 51b15c2 commit 75b3883

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+299
-106
lines changed

.github/workflows/options.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
run: npm install -g ajv-cli
2727

2828
- name: Migrate schema # https://github.com/ajv-validator/ajv-cli/issues/199
29-
run: ajv migrate -s src/util/options.schema.json
29+
run: ajv migrate -s src/common/util/options.schema.json
3030

3131
- name: Validate conf
32-
run: ajv validate -s src/util/options.schema.json -d "conf/**/*.json"
32+
run: ajv validate -s src/common/util/options.schema.json -d "conf/**/*.json"
3333

3434
- name: Validate incremental tests
35-
run: ajv validate -s src/util/options.schema.json -d "tests/incremental/*/*.json"
35+
run: ajv validate -s src/common/util/options.schema.json -d "tests/incremental/*/*.json"

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ build:
2020
- pip install json-schema-for-humans
2121
post_build:
2222
- mkdir _readthedocs/html/jsfh/
23-
- generate-schema-doc --config-file jsfh.yml src/util/options.schema.json _readthedocs/html/jsfh/
23+
- generate-schema-doc --config-file jsfh.yml src/common/util/options.schema.json _readthedocs/html/jsfh/

docs/user-guide/configuring.md

Lines changed: 1 addition & 1 deletion

gobview

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ nav:
3030
- 👶 Your first analysis: developer-guide/firstanalysis.md
3131
- 🏫 Extending library: developer-guide/extending-library.md
3232
- 📢 Messaging: developer-guide/messaging.md
33-
- 🗃️ API reference: https://goblint.github.io/analyzer/
33+
- 🗃️ API reference: https://goblint.github.io/analyzer/goblint/
3434
- 🚨 Testing: developer-guide/testing.md
3535
- 🪲 Debugging: developer-guide/debugging.md
3636
- 📉 Profiling: developer-guide/profiling.md

src/build-info/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
config*.ml

src/build-info/dune

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,22 @@
88
(library
99
(name goblint_build_info)
1010
(public_name goblint.build-info)
11-
(virtual_modules goblint_build_info))
11+
(libraries batteries.unthreaded)
12+
(virtual_modules dune_build_info))
13+
14+
(rule
15+
(target configVersion.ml)
16+
(mode (promote (until-clean) (only configVersion.ml))) ; replace existing file in source tree, even if releasing (only overrides)
17+
(deps (universe)) ; do not cache, always regenerate
18+
(action (pipe-stdout (bash "git describe --all --long --dirty || echo \"n/a\"") (with-stdout-to %{target} (bash "xargs printf '(* Automatically regenerated, changes do not persist! *)\nlet version = \"%s\"'")))))
19+
20+
(rule
21+
(target configProfile.ml)
22+
(mode (promote (until-clean) (only configProfile.ml))) ; replace existing file in source tree, even if releasing (only overrides)
23+
(action (write-file %{target} "(* Automatically regenerated, changes do not persist! *)\nlet profile = \"%{profile}\"")))
24+
25+
(rule
26+
(target configOcaml.ml)
27+
(mode (promote (until-clean) (only configOcaml.ml))) ; replace existing file in source tree, even if releasing (only overrides)
28+
(action (write-file %{target} "(* Automatically regenerated, changes do not persist! *)\nlet flambda = \"%{ocaml-config:flambda}\"")))
29+

0 commit comments

Comments
 (0)