Skip to content

Commit

Permalink
flambda-backend: Local patch against upstream: enable function sectio…
Browse files Browse the repository at this point in the history
…ns in the Dune build
  • Loading branch information
mshinwell authored and poechsel committed Jun 29, 2021
1 parent 886b800 commit d364bfa
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dune
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
-w -67
; remove -w -67 by adding the camlinternalMenhirLib hack like the Makefile
))
(ocamlopt_flags (:standard -function-sections))
(library_flags -linkall)
(libraries stdlib)
(modules_without_implementation
Expand Down Expand Up @@ -89,6 +90,7 @@
-nostdlib -strict-sequence -principal -absname -w +a-4-9-40-41-42-44-45-48-66
-warn-error A -bin-annot -safe-string -strict-formats
))
(ocamlopt_flags (:standard -function-sections))
(libraries stdlib ocamlcommon)
(modules
;; bytecomp/
Expand Down
1 change: 1 addition & 0 deletions lex/dune
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
(wrapped false)
(modes byte native)
(flags (:standard -principal -nostdlib))
(ocamlopt_flags (:standard -function-sections))
(libraries stdlib)
(modules
common
Expand Down
1 change: 1 addition & 0 deletions otherlibs/bigarray/dune
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-nostdlib -strict-sequence -principal -absname -w +a-4-9-40-41-42-44-45-48-66
-warn-error A -bin-annot -safe-string -strict-formats
))
(ocamlopt_flags (:standard -function-sections))
(library_flags (:standard -linkall))
(libraries stdlib))

Expand Down
1 change: 1 addition & 0 deletions otherlibs/dynlink/dune
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-nostdlib -strict-sequence -principal -absname -w +a-4-9-40-41-42-44-45-48
-warn-error A -bin-annot -safe-string -strict-formats
))
(ocamlopt_flags (:standard -function-sections))
(modules
binutils
local_store
Expand Down
1 change: 1 addition & 0 deletions otherlibs/str/dune
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-nostdlib -strict-sequence -principal -absname -w +a-4-9-40-41-42-44-45-48-66
-warn-error A -bin-annot -safe-string -strict-formats
))
(ocamlopt_flags (:standard -function-sections))
(library_flags (:standard -linkall))
(libraries stdlib)
(foreign_stubs (language c) (names strstubs)))
Expand Down
1 change: 1 addition & 0 deletions otherlibs/systhreads/dune
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
mutex
thread)
(flags -w +33..39 -warn-error A -g -bin-annot -safe-string)
(ocamlopt_flags (:standard -function-sections))
(libraries stdlib unix)
(library_flags -linkall)
(c_library_flags -lpthread)
Expand Down
1 change: 1 addition & 0 deletions otherlibs/unix/dune
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-nostdlib -absname -w +a-4-9-41-42-44-45-48 -warn-error A -bin-annot
-g -safe-string -strict-sequence -strict-formats
))
(ocamlopt_flags (:standard -function-sections))
(library_flags (:standard -linkall))
(libraries stdlib)
(foreign_stubs (language c) (names
Expand Down
1 change: 1 addition & 0 deletions stdlib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
-g -warn-error A -bin-annot -nostdlib
-safe-string -strict-formats
))
(ocamlopt_flags (:standard -function-sections))
(preprocess
(per_module
((action
Expand Down

0 comments on commit d364bfa

Please sign in to comment.