1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 20:55:19 +03:00
aports/community/ocaml/compile-without-debug-info.patch
Tuan Hoang 6f58e167f1 Revert "community/ocaml: upgraded to 4.09.0"
This reverts commit d95a53813d.

ocaml-camlp4 latest/final version is 4.08 which does not work with ocaml 4.09.
It is better if we keep ocaml 4.08 for 3.11 release and deal with ocaml-camlp4
after release.

$ apk add ocaml-camlp4
ERROR: unsatisfiable constraints:
  ocaml-runtime-4.09.0-r0:
    breaks: ocaml-camlp4-4.08.1-r0[ocaml-runtime~4.08]
2019-11-22 14:16:59 +00:00

16 lines
673 B
Diff

Significantly decrease size of bytecode-compiled binaries (and slightly
even natives).
--- a/Makefile
+++ b/Makefile
@@ -44,8 +44,8 @@
CAMLRUN ?= boot/ocamlrun
include stdlib/StdlibModules
-CAMLC=$(CAMLRUN) boot/ocamlc -g -nostdlib -I boot -use-prims runtime/primitives
-CAMLOPT=$(CAMLRUN) ./ocamlopt -g -nostdlib -I stdlib -I otherlibs/dynlink
+CAMLC=$(CAMLRUN) boot/ocamlc -nostdlib -I boot -use-prims runtime/primitives
+CAMLOPT=$(CAMLRUN) ./ocamlopt -nostdlib -I stdlib -I otherlibs/dynlink
ARCHES=amd64 i386 arm arm64 power s390x
INCLUDES=-I utils -I parsing -I typing -I bytecomp -I middle_end \
-I middle_end/base_types -I asmcomp -I asmcomp/debug \