Skip to content

Commit 2428c8e

Browse files
authored
Use findlib instead of Boot.Env.native_cmi (#28)
Adapt to rocq-prover/rocq#20376
2 parents ac9dfbe + a54b96b commit 2428c8e

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/docker-action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
image:
18-
- 'coqorg/coq:dev'
17+
coq_version:
18+
- 'dev'
1919
fail-fast: false
2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
2222
- uses: coq-community/docker-coq-action@v1
2323
with:
2424
opam_file: 'coq-ltac2-compiler.opam'
25-
custom_image: ${{ matrix.image }}
25+
coq_version: ${{ matrix.coq_version }}
2626

2727
# See also:
2828
# https://github.com/coq-community/docker-coq-action#readme

src/tac2compile.ml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,11 +1110,9 @@ let error_compiler_failed e =
11101110
CErrors.user_err msg
11111111

11121112
let include_dirs () =
1113-
(* TODO make this work in -boot / dev shim mode *)
1114-
let open Boot.Env in
1115-
let env = init () in
1113+
let rocq = Findlib.package_directory "rocq-runtime" in
11161114
(* engine for Proofview, kernel for Names *)
1117-
let core = List.map (fun x -> Path.to_string (native_cmi env x))
1115+
let core = List.map (fun x -> Filename.concat rocq x)
11181116
[ "kernel"; "engine"; "plugins/ltac2" ]
11191117
in
11201118
let self = Findlib.package_directory "coq-ltac2-compiler" in

0 commit comments

Comments
 (0)