Enable -safe-string everywhere

Useful for testing on OCaml < 4.06.0
This commit is contained in:
Rudi Grinberg 2017-11-06 18:33:48 +08:00
parent 5ca193128c
commit 39d18c9541
5 changed files with 5 additions and 0 deletions

View File

@ -2,5 +2,6 @@
(executable (executable
((name myutop) ((name myutop)
(flags (:standard -safe-string))
(link_flags (-linkall)) (link_flags (-linkall))
(libraries (utop)))) (libraries (utop))))

View File

@ -2,5 +2,6 @@
(executable (executable
((name test_program) ((name test_program)
(flags (:standard -safe-string))
(link_flags (-linkall)) (link_flags (-linkall))
(libraries (utop)))) (libraries (utop))))

View File

@ -4,6 +4,7 @@
((name uTop) ((name uTop)
(public_name utop) (public_name utop)
(wrapped false) (wrapped false)
(flags (:standard -safe-string))
(modes (byte)) (modes (byte))
(libraries (compiler-libs.toplevel findlib.top lambda-term threads)) (libraries (compiler-libs.toplevel findlib.top lambda-term threads))
(preprocess (action (run ${bin:cppo} -V OCAML:${ocaml_version} ${<}))))) (preprocess (action (run ${bin:cppo} -V OCAML:${ocaml_version} ${<})))))

View File

@ -2,4 +2,5 @@
(executable (executable
((name expunge) ((name expunge)
(flags (:standard -safe-string))
(libraries (unix)))) (libraries (unix))))

View File

@ -3,6 +3,7 @@
(executables (executables
((names (utop)) ((names (utop))
(libraries (utop)) (libraries (utop))
(flags (:standard -safe-string))
(link_flags (-linkall)))) (link_flags (-linkall))))
(rule (rule