summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2016-09-07 00:15:21 (GMT)
committerBrett Cannon <brett@python.org>2016-09-07 00:15:21 (GMT)
commit8c94f9746578fd9294f606d9d81e7fb466b34bdb (patch)
tree9d521dc5882938d283a974cbd7212fa40dc5b65e /Makefile.pre.in
parent653c8509191623951ca7d0091f470d3632034d84 (diff)
downloadcpython-8c94f9746578fd9294f606d9d81e7fb466b34bdb.zip
cpython-8c94f9746578fd9294f606d9d81e7fb466b34bdb.tar.gz
cpython-8c94f9746578fd9294f606d9d81e7fb466b34bdb.tar.bz2
Issue #26359: Add the --with-optimizations flag.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index f07c282..4e6679a 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -481,7 +481,7 @@ LIBRARY_OBJS= \
# Rules
# Default target
-all: build_all
+all: @DEF_MAKE_ALL_RULE@
build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks Programs/_testembed python-config
# Compile a binary with profile guided optimization.
@@ -505,7 +505,7 @@ profile-opt:
$(MAKE) profile-removal
build_all_generate_profile:
- $(MAKE) all CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_GEN_FLAG) @LTOFLAGS@" LDFLAGS="$(LDFLAGS) $(PGO_PROF_GEN_FLAG) @LTOFLAGS@" LIBS="$(LIBS)"
+ $(MAKE) @DEF_MAKE_RULE@ CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_GEN_FLAG) @LTOFLAGS@" LDFLAGS="$(LDFLAGS) $(PGO_PROF_GEN_FLAG) @LTOFLAGS@" LIBS="$(LIBS)"
run_profile_task:
: # FIXME: can't run for a cross build
@@ -515,14 +515,14 @@ build_all_merge_profile:
$(LLVM_PROF_MERGER)
build_all_use_profile:
- $(MAKE) all CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_USE_FLAG) @LTOFLAGS@" LDFLAGS="$(LDFLAGS) @LTOFLAGS@"
+ $(MAKE) @DEF_MAKE_RULE@ CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_USE_FLAG) @LTOFLAGS@" LDFLAGS="$(LDFLAGS) @LTOFLAGS@"
# Compile and run with gcov
.PHONY=coverage coverage-lcov coverage-report
coverage:
@echo "Building with support for coverage checking:"
$(MAKE) clean profile-removal
- $(MAKE) all CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LIBS="$(LIBS) -lgcov"
+ $(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LIBS="$(LIBS) -lgcov"
coverage-lcov:
@echo "Creating Coverage HTML report with LCOV:"