From fd94a33c560c65d4e101210660af42231db8f436 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Tue, 7 Jan 2020 10:30:14 -0700 Subject: [PATCH] CMake: When compiling Python to .pyc, optimize with -O Distros seem to prefer having opt-1 Python modules and don't care as much about the opt-2. --- cmake/scripts/CopyPython.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/scripts/CopyPython.cmake b/cmake/scripts/CopyPython.cmake index 1a3c98839a..a611850b62 100644 --- a/cmake/scripts/CopyPython.cmake +++ b/cmake/scripts/CopyPython.cmake @@ -70,7 +70,7 @@ if(changed AND DEFINED PYTHON_EXECUTABLES) WORKING_DIRECTORY "${OUTPUT_DIR}") execute_process( - COMMAND "${interp}" -OO -m compileall . + COMMAND "${interp}" -O -m compileall . OUTPUT_QUIET WORKING_DIRECTORY "${OUTPUT_DIR}")