Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize build_type #49826

Merged
merged 1 commit into from
Jan 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,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())
Expand Down