STINNER Victor <vstin...@redhat.com> added the comment:
I wrote PR 11164 to fix the issue. Example: $ git clean -fdx $ ./configure --with-pydebug $ make profile-opt CFLAGS_NODIST="-O1" (...) gcc -pthread -c -Wno-unused-result -Wsign-compare -g -Og -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -fprofile-generate -I./Include/internal -I. -I./Include -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c (...) => CFLAGS_NODIST is missing: I don't see -O1 in the command line. With my change: $ git clean -fdx $ ./configure --with-pydebug $ make profile-opt CFLAGS_NODIST="-O1" (...) gcc -pthread -c -Wno-unused-result -Wsign-compare -g -Og -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -O1 -fprofile-generate -I./Include/internal -I. -I./Include -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c (...) => CFLAGS_NODIST is used: I see "-O1" in the command line. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35499> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com