From 0464221edb0cd0a3cedbb8807d8cd935c1ff203c Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Mon, 16 Jan 2017 01:22:04 +0000 Subject: [PATCH] Specify `-O0` when `--debug` has specified (fixes #808) --- plugins/python-build/bin/python-build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 58531d9d..a0058afb 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1783,6 +1783,8 @@ for option in "${OPTIONS[@]}"; do ;; "g" | "debug" ) DEBUG=true + # Disable optimization (#808) + PYTHON_CFLAGS="-O0 ${PYTHON_CFLAGS}" ;; "4" | "ipv4") IPV4=true