Define OPTCOMPFLAGS in Makefile.common.in
parent
ec03b06ad2
commit
7465e9f2c7
4
Makefile
4
Makefile
|
@ -62,9 +62,7 @@ COMPFLAGS=-strict-sequence -principal -absname -w +a-4-9-40-41-42-44-45-48-66 \
|
||||||
-warn-error A \
|
-warn-error A \
|
||||||
-bin-annot -safe-string -strict-formats $(INCLUDES)
|
-bin-annot -safe-string -strict-formats $(INCLUDES)
|
||||||
ifeq "$(FUNCTION_SECTIONS)" "true"
|
ifeq "$(FUNCTION_SECTIONS)" "true"
|
||||||
OPTCOMPFLAGS= -function-sections
|
OPTCOMPFLAGS += -function-sections
|
||||||
else
|
|
||||||
OPTCOMPFLAGS=
|
|
||||||
endif
|
endif
|
||||||
LINKFLAGS=
|
LINKFLAGS=
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,8 @@ else
|
||||||
ocamlopt_cmd = $(FLEXLINK_ENV) $(ocamlopt)
|
ocamlopt_cmd = $(FLEXLINK_ENV) $(ocamlopt)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
OPTCOMPFLAGS=
|
||||||
|
|
||||||
# By default, request ocamllex to be quiet
|
# By default, request ocamllex to be quiet
|
||||||
OCAMLLEX_FLAGS ?= -q
|
OCAMLLEX_FLAGS ?= -q
|
||||||
|
|
||||||
|
|
|
@ -32,9 +32,7 @@ OC_CPPFLAGS += -I$(ROOTDIR)/runtime
|
||||||
COMPFLAGS=-absname -w +a-4-9-41-42-44-45-48 -warn-error A -bin-annot -g \
|
COMPFLAGS=-absname -w +a-4-9-41-42-44-45-48 -warn-error A -bin-annot -g \
|
||||||
-safe-string -strict-sequence -strict-formats $(EXTRACAMLFLAGS)
|
-safe-string -strict-sequence -strict-formats $(EXTRACAMLFLAGS)
|
||||||
ifeq "$(FLAMBDA)" "true"
|
ifeq "$(FLAMBDA)" "true"
|
||||||
OPTCOMPFLAGS=-O3
|
OPTCOMPFLAGS += -O3
|
||||||
else
|
|
||||||
OPTCOMPFLAGS=
|
|
||||||
endif
|
endif
|
||||||
ifeq "$(FUNCTION_SECTIONS)" "true"
|
ifeq "$(FUNCTION_SECTIONS)" "true"
|
||||||
OPTCOMPFLAGS += -function-sections
|
OPTCOMPFLAGS += -function-sections
|
||||||
|
|
|
@ -35,9 +35,7 @@ COMPFLAGS=-strict-sequence -principal -absname -w +a-4-9-40-41-42-44-45-48-66 \
|
||||||
-warn-error A \
|
-warn-error A \
|
||||||
-bin-annot -safe-string -strict-formats
|
-bin-annot -safe-string -strict-formats
|
||||||
ifeq "$(FLAMBDA)" "true"
|
ifeq "$(FLAMBDA)" "true"
|
||||||
OPTCOMPFLAGS=-O3
|
OPTCOMPFLAGS += -O3
|
||||||
else
|
|
||||||
OPTCOMPFLAGS=
|
|
||||||
endif
|
endif
|
||||||
ifeq "$(FUNCTION_SECTIONS)" "true"
|
ifeq "$(FUNCTION_SECTIONS)" "true"
|
||||||
OPTCOMPFLAGS += -function-sections
|
OPTCOMPFLAGS += -function-sections
|
||||||
|
|
|
@ -36,9 +36,7 @@ CAMLOPT=$(BEST_OCAMLOPT) $(LIBS)
|
||||||
MKLIB=$(CAMLRUN) $(ROOTDIR)/tools/ocamlmklib
|
MKLIB=$(CAMLRUN) $(ROOTDIR)/tools/ocamlmklib
|
||||||
COMPFLAGS=-w +33..39 -warn-error A -g -bin-annot -safe-string
|
COMPFLAGS=-w +33..39 -warn-error A -g -bin-annot -safe-string
|
||||||
ifeq "$(FLAMBDA)" "true"
|
ifeq "$(FLAMBDA)" "true"
|
||||||
OPTCOMPFLAGS=-O3
|
OPTCOMPFLAGS += -O3
|
||||||
else
|
|
||||||
OPTCOMPFLAGS=
|
|
||||||
endif
|
endif
|
||||||
ifeq "$(FUNCTION_SECTIONS)" "true"
|
ifeq "$(FUNCTION_SECTIONS)" "true"
|
||||||
OPTCOMPFLAGS += -function-sections
|
OPTCOMPFLAGS += -function-sections
|
||||||
|
|
|
@ -26,9 +26,7 @@ COMPFLAGS=-strict-sequence -absname -w +a-4-9-41-42-44-45-48 \
|
||||||
-g -warn-error A -bin-annot -nostdlib \
|
-g -warn-error A -bin-annot -nostdlib \
|
||||||
-safe-string -strict-formats
|
-safe-string -strict-formats
|
||||||
ifeq "$(FLAMBDA)" "true"
|
ifeq "$(FLAMBDA)" "true"
|
||||||
OPTCOMPFLAGS=-O3
|
OPTCOMPFLAGS += -O3
|
||||||
else
|
|
||||||
OPTCOMPFLAGS=
|
|
||||||
endif
|
endif
|
||||||
ifeq "$(FUNCTION_SECTIONS)" "true"
|
ifeq "$(FUNCTION_SECTIONS)" "true"
|
||||||
OPTCOMPFLAGS += -function-sections
|
OPTCOMPFLAGS += -function-sections
|
||||||
|
|
Loading…
Reference in New Issue