浏览代码

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 年之前
父节点
当前提交
fd94a33c56
共有 1 个文件被更改,包括 1 次插入1 次删除
  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}")