Skip to content

Commit 6b4289e

Browse files
committed
ppx_ocplib_i18n doesn't cope well with dune sandboxing
1 parent f5fd701 commit 6b4289e

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

src/app/dune

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
Server_caller)
1414
((pps ppx_ocplib_i18n js_of_ocaml-ppx)
1515
Learnocaml_common)))
16+
(preprocessor_deps (sandbox none))
1617
(libraries
1718
json-data-encoding-browser
1819
js_of_ocaml
@@ -43,6 +44,7 @@
4344
Learnocaml_teacher_tab
4445
Learnocaml_index_main)
4546
(preprocess (pps ppx_ocplib_i18n js_of_ocaml-ppx))
47+
(preprocessor_deps (sandbox none))
4648
)
4749

4850
(executable
@@ -60,6 +62,7 @@
6062
ocplib_i18n)
6163
(modules Learnocaml_exercise_main)
6264
(preprocess (pps ppx_ocplib_i18n js_of_ocaml-ppx))
65+
(preprocessor_deps (sandbox none))
6366
)
6467

6568
(executable
@@ -76,6 +79,7 @@
7679
ocplib_i18n)
7780
(modules Learnocaml_playground_main)
7881
(preprocess (pps ppx_ocplib_i18n js_of_ocaml-ppx))
82+
(preprocessor_deps (sandbox none))
7983
)
8084

8185
(executable
@@ -92,6 +96,7 @@
9296
ocplib_i18n)
9397
(modules Learnocaml_student_view)
9498
(preprocess (pps ppx_ocplib_i18n js_of_ocaml-ppx))
99+
(preprocessor_deps (sandbox none))
95100
)
96101

97102
(executable
@@ -106,6 +111,7 @@
106111
ocplib_i18n)
107112
(modules Learnocaml_description_main)
108113
(preprocess (pps ppx_ocplib_i18n js_of_ocaml-ppx))
114+
(preprocessor_deps (sandbox none))
109115
)
110116

111117

src/grader/dune

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
(flags :standard -w -37-41 -warn-error -27-39)
55
(modules Learnocaml_report)
66
(preprocess (pps ppx_ocplib_i18n))
7+
(preprocessor_deps (sandbox none))
78
(libraries json-data-encoding ocplib_i18n)
89
)
910

@@ -191,6 +192,7 @@
191192
Embedded_grading_lib
192193
Grading)
193194
(preprocess (per_module ((pps ppx_ocplib_i18n grader_ppx) Grading)))
195+
(preprocessor_deps (sandbox none))
194196
)
195197

196198

@@ -252,6 +254,7 @@
252254
grader_jsoo_messages)
253255
(modules Grader_jsoo_worker)
254256
(preprocess (pps ppx_ocplib_i18n js_of_ocaml-ppx))
257+
(preprocessor_deps (sandbox none))
255258
(js_of_ocaml (flags :standard --toplevel --nocmis
256259
+dynlink.js +toplevel.js))
257260
)

src/toplevel/dune

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
Learnocaml_toplevel_input
7272
Learnocaml_toplevel)
7373
(preprocess (pps ppx_ocplib_i18n js_of_ocaml-ppx))
74+
(preprocessor_deps (sandbox none))
7475
)
7576

7677

src/utils/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
(flags :standard -warn-error -4-42-44-45-48)
1414
(preprocess (pps ppx_ocplib_i18n))
1515
(modules Ocplib_i18n)
16-
(preprocessor_deps (glob_files ../../translations/*.po))
16+
(preprocessor_deps (sandbox none))
1717
)
1818

1919
(library

0 commit comments

Comments
 (0)