未验证 提交 8fdb9087 编写于 作者: R risemeup1 提交者: GitHub

optimize build_type (#49826)

上级 c8187ac7
......@@ -679,7 +679,12 @@ def build_run(args, build_path, envrion_var):
def run_cmake_build(build_path):
build_args = ["--build", ".", "--target", "install", "--config", 'Release']
build_type = (
os.getenv("CMAKE_BUILD_TYPE")
if os.getenv("CMAKE_BUILD_TYPE") is not None
else "release"
)
build_args = ["--build", ".", "--target", "install", "--config", build_type]
max_jobs = os.getenv("MAX_JOBS")
if max_jobs is not None:
max_jobs = max_jobs or str(multiprocessing.cpu_count())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册