gdb: fix vfork with multiple threads
[deliverable/binutils-gdb.git] / Makefile.tpl
index 38f0b021f43c3948ae7c14fc206216c799debf70..84fee3dd0f796cdd89ca876bb7f3e0f13aa722ac 100644 (file)
@@ -440,9 +440,13 @@ PGO_BUILD_TRAINING_CFLAGS:= \
 PGO_BUILD_TRAINING_CXXFLAGS:= \
        $(filter-out -specs=%,$(PGO_BUILD_TRAINING_CXXFLAGS))
 PGO_BUILD_TRAINING_FLAGS_TO_PASS = \
+       PGO_BUILD_TRAINING=yes \
        CFLAGS_FOR_TARGET="$(PGO_BUILD_TRAINING_CFLAGS)" \
        CXXFLAGS_FOR_TARGET="$(PGO_BUILD_TRAINING_CXXFLAGS)"
 
+# Ignore "make check" errors in PGO training runs.
+PGO_BUILD_TRAINING_MFLAGS = -i
+
 # Additional PGO and LTO compiler options to use profiling data for the
 # PGO build.
 PGO_BUILD_USE_FLAGS_TO_PASS = \
@@ -784,6 +788,7 @@ all:
                $(PGO_BUILD_GEN_FLAGS_TO_PASS) all-host all-target \
 @if pgo-build
        && $(MAKE) $(RECURSE_FLAGS_TO_PASS) \
+               $(PGO_BUILD_TRAINING_MFLAGS) \
                $(PGO_BUILD_TRAINING_FLAGS_TO_PASS) \
                $(PGO_BUILD_TRAINING) \
        && $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean \
This page took 0.022671 seconds and 4 git commands to generate.