Skip to content

iOS clang aliases crash with "invalid directory name" error if called with arguments having spaces #127434

Closed
@FeodorFitsner

Description

@FeodorFitsner

Bug report

Bug description:

While doing cross-compilation of Python packages for iOS calling arm64-apple-ios-clang script (and other aliases as well) fails if arguments contain spaces, for example:

arm64-apple-ios-clang -DPACKAGE_TARNAME="aaa" -DPACKAGE_STRING="aaa 1.2.2" -c -o src/main.o src/main.c

gives clang: invalid directory name: '1.2.2"' error.

To fix that $@ inside script should be wrapped with quotes: "$@".

I'm going to make PR.

CPython versions tested on:

3.12

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Assignees

Labels

OS-iosbuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions