aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-02-25 07:39:47 +0100
committerBjörn Gustavsson <[email protected]>2015-03-09 11:54:43 +0100
commit0d16828327959cc6a3870474ec7064f6fde9deae (patch)
treeec23e6198497ece6a206729e172dde23ca2ad732 /lib/compiler
parent9e15be5f241730b127d89dca01c6ad5f1e7508d7 (diff)
downloadotp-0d16828327959cc6a3870474ec7064f6fde9deae.tar.gz
otp-0d16828327959cc6a3870474ec7064f6fde9deae.tar.bz2
otp-0d16828327959cc6a3870474ec7064f6fde9deae.zip
Don't inline core_parse
Inlining the core_parse module is slow (the inline pass alone takes more than 6 seconds on my computer) and has no benefit.
Diffstat (limited to 'lib/compiler')
-rw-r--r--lib/compiler/src/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/compiler/src/Makefile b/lib/compiler/src/Makefile
index 2032392821..7c4cebdc28 100644
--- a/lib/compiler/src/Makefile
+++ b/lib/compiler/src/Makefile
@@ -159,6 +159,10 @@ $(EBIN)/beam_asm.beam: $(ESRC)/beam_asm.erl $(EGEN)/beam_opcodes.hrl
$(EBIN)/cerl_inline.beam: $(ESRC)/cerl_inline.erl
$(V_ERLC) $(ERL_COMPILE_FLAGS) +nowarn_shadow_vars -o$(EBIN) $<
+# Inlining core_parse is slow and has no benefit.
+$(EBIN)/core_parse.beam: $(EGEN)/core_parse.erl
+ $(V_ERLC) $(subst +inline,,$(ERL_COMPILE_FLAGS)) -o$(EBIN) $<
+
# ----------------------------------------------------
# Release Target
# ----------------------------------------------------