Skip to content

fix(build): join EXTRA_CMAKE_ARGS with semicolons for SKBUILD_CMAKE_ARGS#1588

Merged
rapids-bot[bot] merged 1 commit into
mainfrom
fix/build-cmake-args-join
Jul 20, 2026
Merged

fix(build): join EXTRA_CMAKE_ARGS with semicolons for SKBUILD_CMAKE_ARGS#1588
rapids-bot[bot] merged 1 commit into
mainfrom
fix/build-cmake-args-join

Conversation

@ramakrishnap-nv

Copy link
Copy Markdown
Collaborator

`${arr[]// /;}` applies the substitution per-element before joining, so the spaces between array elements are never replaced. Use `$(IFS=';'; echo "${arr[]}")` to join with semicolons directly.

Fixes #1587

${arr[*]// /;} applies the substitution per-element before joining, so
spaces between elements are never replaced. Use $(IFS=';'; echo "${arr[*]}")
to join elements with semicolons directly.

Fixes #1587

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Ramakrishna Prabhu <ramakrishnap@nvidia.com>
@ramakrishnap-nv
ramakrishnap-nv requested a review from a team as a code owner July 17, 2026 20:46
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: ae897be0-7faf-49dd-9b92-28acc33c1971

📥 Commits

Reviewing files that changed from the base of the PR and between 37a7b63 and be78746.

📒 Files selected for processing (1)
  • build.sh

📝 Walkthrough

Walkthrough

Changes

cuopt Python build

Layer / File(s) Summary
Join extra CMake arguments
build.sh
Constructs SKBUILD_CMAKE_ARGS by joining EXTRA_CMAKE_ARGS with semicolons before invoking the cuopt Python build.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: jakirkham

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the build.sh fix for joining EXTRA_CMAKE_ARGS into SKBUILD_CMAKE_ARGS.
Description check ✅ Passed The description matches the PR and explains the semicolon-join fix for the Bash array handling.
Linked Issues check ✅ Passed The change directly fixes #1587 by joining EXTRA_CMAKE_ARGS with semicolons as required.
Out of Scope Changes check ✅ Passed The diff stays within the cuopt build.sh fix and removes only an obsolete comment.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/build-cmake-args-join

Comment @coderabbitai help to get the list of available commands.

@ramakrishnap-nv ramakrishnap-nv self-assigned this Jul 17, 2026
@ramakrishnap-nv ramakrishnap-nv added non-breaking Introduces a non-breaking change improvement Improves an existing functionality bug Something isn't working and removed improvement Improves an existing functionality labels Jul 17, 2026
@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown

CI Test Summary

✅ All 31 test job(s) passed.

@mlubin

mlubin commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Thanks!

@ramakrishnap-nv

Copy link
Copy Markdown
Collaborator Author

/merge

@rapids-bot
rapids-bot Bot merged commit 6e1241a into main Jul 20, 2026
268 of 273 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] build.sh: --cmake-args are mangled for the cuopt Python package

3 participants