Skip to content

Commit

Permalink
Apply archflag to prof, oprof methods too
Browse files Browse the repository at this point in the history
We want to profile binaries that are as close to opt mode as possible.
  • Loading branch information
roystgnr committed Jul 12, 2018
1 parent df6e305 commit d6dd2d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.ac
Expand Up @@ -150,10 +150,12 @@ AS_IF([test "x$enablemarch" != "xno"],
AX_GCC_ARCHFLAG([no],
[
dnl Action if success - append $ax_cv_gcc_archflag to CXXFLAGS flags for
dnl optimized and devel METHODS. I don't think it is needed with -O0 when
dnl all but debugging METHODS. I don't think it is needed with -O0 when
dnl debugging.
CXXFLAGS_OPT="$CXXFLAGS_OPT $ax_cv_gcc_archflag"
CXXFLAGS_DEVEL="$CXXFLAGS_DEVEL $ax_cv_gcc_archflag"
CXXFLAGS_PROF="$CXXFLAGS_PROF $ax_cv_gcc_archflag"
CXXFLAGS_OPROF="$CXXFLAGS_OPROF $ax_cv_gcc_archflag"
])
])

Expand Down

0 comments on commit d6dd2d4

Please sign in to comment.