Skip to content

Arm backend: Guard empty cmake arg array in build_executorch#19840

Merged
Erik-Lundell merged 1 commit into
pytorch:mainfrom
Erik-Lundell:cmake-out-args
May 28, 2026
Merged

Arm backend: Guard empty cmake arg array in build_executorch#19840
Erik-Lundell merged 1 commit into
pytorch:mainfrom
Erik-Lundell:cmake-out-args

Conversation

@Erik-Lundell
Copy link
Copy Markdown
Collaborator

@Erik-Lundell Erik-Lundell commented May 28, 2026

Avoid expanding extra_cmake_args when the array is empty.

Older Bash versions on macOS treat an empty array expansion under set -u as an unbound variable. Append the extra CMake arguments only when the array is non-empty so the script behaves the same on Linux and macOS.

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani

Avoid expanding extra_cmake_args when the array is empty.

Older Bash versions on macOS treat an empty array expansion under
set -u as an unbound variable. Append the extra CMake arguments only
when the array is non-empty so the script behaves the same on Linux
and macOS.

Signed-off-by: Erik Lundell <erik.lundell@arm.com>
Change-Id: Icff94493ee683bfd3005fc503083207307fcf48c
@Erik-Lundell Erik-Lundell requested a review from digantdesai as a code owner May 28, 2026 11:02
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented May 28, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19840

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 1 New Failure, 75 Pending

As of commit ee343bb with merge base b48a457 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 28, 2026
@github-actions github-actions Bot added ciflow/trunk module: arm Issues related to arm backend labels May 28, 2026
@Erik-Lundell Erik-Lundell added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm and removed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. ciflow/trunk module: arm Issues related to arm backend labels May 28, 2026
@Erik-Lundell Erik-Lundell added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: none Do not include this in the release notes module: arm Issues related to arm backend labels May 28, 2026
@Erik-Lundell Erik-Lundell merged commit 96b19af into pytorch:main May 28, 2026
462 of 482 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: arm Issues related to arm backend partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants