Merge pull request #9840 from dra27/fix-9839
Partial revert of 9165: don't build the compiler with -O3 in flambda (cherry picked from commit 6ce1c60ca97ee962ebf5d5218628bc388536325e)master
parent
3a094ebc36
commit
46c7122888
2
Changes
2
Changes
|
@ -1213,7 +1213,7 @@ OCaml 4.10 maintenance branch
|
|||
- #9068, #9437: ocamlopt -output-complete-obj failure on FreeBSD 12
|
||||
(Xavier Leroy, report by Hannes Mehnert, review by Sébastien Hinderer)
|
||||
|
||||
- #9165: Add missing -function-sections and -O3 flags in Makefiles.
|
||||
- #9165, #9840: Add missing -function-sections flag in Makefiles.
|
||||
(Greta Yorsh, review by David Allsopp)
|
||||
|
||||
- #9495: fix a bug where bytecode binaries compiled with `-output-complete-exe`
|
||||
|
|
|
@ -66,9 +66,6 @@ OPTCOMPFLAGS=
|
|||
ifeq "$(FUNCTION_SECTIONS)" "true"
|
||||
OPTCOMPFLAGS += -function-sections
|
||||
endif
|
||||
ifeq "$(FLAMBDA)" "true"
|
||||
OPTCOMPFLAGS += -O3
|
||||
endif
|
||||
# By default, request ocamllex to be quiet
|
||||
OCAMLLEX_FLAGS ?= -q
|
||||
|
||||
|
|
|
@ -34,7 +34,10 @@ OC_CPPFLAGS += -I$(ROOTDIR)/runtime $(EXTRACPPFLAGS)
|
|||
# Compilation options
|
||||
COMPFLAGS=-absname -w +a-4-9-41-42-44-45-48 -warn-error A -bin-annot -g \
|
||||
-safe-string -strict-sequence -strict-formats $(EXTRACAMLFLAGS)
|
||||
MKLIB=$(CAMLRUN) $(ROOTDIR)/tools/ocamlmklib$(EXE)
|
||||
ifeq "$(FLAMBDA)" "true"
|
||||
OPTCOMPFLAGS += -O3
|
||||
endif
|
||||
MKLIB=$(CAMLRUN) $(ROOTDIR)/tools/ocamlmklib
|
||||
|
||||
# Variables that must be defined by individual libraries:
|
||||
# LIBNAME
|
||||
|
|
|
@ -33,6 +33,9 @@ OCAMLOPT=$(BEST_OCAMLOPT) -g -nostdlib -I $(ROOTDIR)/stdlib
|
|||
COMPFLAGS=-strict-sequence -principal -absname -w +a-4-9-40-41-42-44-45-48-66 \
|
||||
-warn-error A \
|
||||
-bin-annot -safe-string -strict-formats
|
||||
ifeq "$(FLAMBDA)" "true"
|
||||
OPTCOMPFLAGS += -O3
|
||||
endif
|
||||
|
||||
COMPFLAGS += -I byte
|
||||
OPTCOMPFLAGS += -I native
|
||||
|
|
|
@ -38,6 +38,9 @@ CAMLOPT=$(BEST_OCAMLOPT) $(LIBS)
|
|||
|
||||
MKLIB=$(CAMLRUN) $(ROOTDIR)/tools/ocamlmklib$(EXE)
|
||||
COMPFLAGS=-w +33..39 -warn-error A -g -bin-annot -safe-string
|
||||
ifeq "$(FLAMBDA)" "true"
|
||||
OPTCOMPFLAGS += -O3
|
||||
endif
|
||||
|
||||
LIBNAME=threads
|
||||
|
||||
|
|
|
@ -24,7 +24,10 @@ CAMLC=$(CAMLRUN) $(COMPILER)
|
|||
COMPFLAGS=-strict-sequence -absname -w +a-4-9-41-42-44-45-48 \
|
||||
-g -warn-error A -bin-annot -nostdlib -principal \
|
||||
-safe-string -strict-formats
|
||||
OPTCOMPILER=$(ROOTDIR)/ocamlopt$(EXE)
|
||||
ifeq "$(FLAMBDA)" "true"
|
||||
OPTCOMPFLAGS += -O3
|
||||
endif
|
||||
OPTCOMPILER=$(ROOTDIR)/ocamlopt
|
||||
CAMLOPT=$(CAMLRUN) $(OPTCOMPILER)
|
||||
CAMLDEP=$(BOOT_OCAMLC) -depend
|
||||
DEPFLAGS=-slash
|
||||
|
|
Loading…
Reference in New Issue