Skip to content

BLD: Help raspian arm + clang 13 about __builtin_mul_overflow#22857

Merged
charris merged 1 commit intonumpy:maintenance/1.24.xfrom
charris:backport-22856
Dec 21, 2022
Merged

BLD: Help raspian arm + clang 13 about __builtin_mul_overflow#22857
charris merged 1 commit intonumpy:maintenance/1.24.xfrom
charris:backport-22856

Conversation

@charris
Copy link
Copy Markdown
Member

@charris charris commented Dec 21, 2022

Backport of #22856.

It seems on raspian arm with clang 13 `__builtin_mul_overflow` is
defined for `int` but doesn't work for `ptrdiff_t` (and maybe others).
This checks for `ptrdiff_t` instead of int, which was reported to
work-around the issue.

Closes numpygh-22811
@charris charris added 08 - Backport Used to tag backport PRs 36 - Build Build related PR labels Dec 21, 2022
@charris charris added this to the 1.24.1 release milestone Dec 21, 2022
@charris charris changed the base branch from main to maintenance/1.24.x December 21, 2022 15:42
@charris charris changed the title Backport 22856 BLD: Help raspian arm + clang 13 about __builtin_mul_overflow Dec 21, 2022
@charris
Copy link
Copy Markdown
Member Author

charris commented Dec 21, 2022

close/reopen

@charris charris closed this Dec 21, 2022
@charris charris reopened this Dec 21, 2022
@charris charris merged commit 9bbf8c1 into numpy:maintenance/1.24.x Dec 21, 2022
@charris charris deleted the backport-22856 branch December 21, 2022 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

08 - Backport Used to tag backport PRs 36 - Build Build related PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants