Browse Source

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.
Sam Edwards 6 years ago
parent
commit
fd94a33c56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmake/scripts/CopyPython.cmake

+ 1 - 1
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}")