2
0
Эх сурвалжийг харах

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 жил өмнө
parent
commit
fd94a33c56

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