Skip to content

Commit 479660e

Browse files
flambda-backend: Fix --enable-dev (#2635)
Fix compilcation of systhreads4 with `--enable-dev`; also reformat Co-authored-by: Diana Kalinichenko <dkalinichenko@janestreet.com>
1 parent f049c43 commit 479660e

File tree

2 files changed

+35
-31
lines changed

2 files changed

+35
-31
lines changed

otherlibs/systhreads4/byte/dune

+17-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
(copy_files# ../*.{c,h,ml,mli})
22

33
(library
4-
(name threads)
5-
(modes byte)
6-
(wrapped false)
7-
; FIXME Fix warning 27
4+
(name threads)
5+
(modes byte)
6+
(wrapped false)
7+
; FIXME Fix warning 27 and -no-strict-sequence
8+
(flags
9+
(:standard -no-strict-sequence -g -bin-annot -safe-string -w -27))
10+
(ocamlopt_flags
11+
(:include %{project_root}/ocamlopt_flags.sexp))
12+
(libraries unix)
13+
(library_flags -linkall)
14+
(c_library_flags -lpthread)
15+
(foreign_stubs
16+
(language c)
17+
(names st_stubs)
818
(flags
9-
(:standard -g -bin-annot -safe-string -w -27))
10-
(ocamlopt_flags (:include %{project_root}/ocamlopt_flags.sexp))
11-
(libraries unix)
12-
(library_flags -linkall)
13-
(c_library_flags -lpthread)
14-
(foreign_stubs
15-
(language c)
16-
(names st_stubs)
17-
(flags ((:include %{project_root}/oc_cflags.sexp)
18-
(:include %{project_root}/sharedlib_cflags.sexp)
19-
(:include %{project_root}/oc_cppflags.sexp)))))
19+
((:include %{project_root}/oc_cflags.sexp)
20+
(:include %{project_root}/sharedlib_cflags.sexp)
21+
(:include %{project_root}/oc_cppflags.sexp)))))

otherlibs/systhreads4/native/dune

+18-16
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
(copy_files# ../*.{c,h,ml,mli})
22

33
(library
4-
(name threadsnat)
5-
(modes native)
6-
(wrapped false)
7-
; FIXME Fix warning 27
4+
(name threadsnat)
5+
(modes native)
6+
(wrapped false)
7+
; FIXME Fix warning 27 and -no-strict-sequence
8+
(flags
9+
(:standard -no-strict-sequence -g -bin-annot -safe-string -w -27))
10+
(ocamlopt_flags
11+
(:include %{project_root}/ocamlopt_flags.sexp))
12+
(libraries unix)
13+
(library_flags -linkall)
14+
(c_library_flags -lpthread)
15+
(foreign_stubs
16+
(language c)
17+
(names st_stubs)
818
(flags
9-
(:standard -g -bin-annot -safe-string -w -27))
10-
(ocamlopt_flags (:include %{project_root}/ocamlopt_flags.sexp))
11-
(libraries unix)
12-
(library_flags -linkall)
13-
(c_library_flags -lpthread)
14-
(foreign_stubs
15-
(language c)
16-
(names st_stubs)
17-
(flags ((-DNATIVE_CODE)
18-
(:include %{project_root}/oc_cflags.sexp)
19-
(:include %{project_root}/sharedlib_cflags.sexp)
20-
(:include %{project_root}/oc_cppflags.sexp)))))
19+
((-DNATIVE_CODE)
20+
(:include %{project_root}/oc_cflags.sexp)
21+
(:include %{project_root}/sharedlib_cflags.sexp)
22+
(:include %{project_root}/oc_cppflags.sexp)))))

0 commit comments

Comments
 (0)