Skip to content

cycles.c: add powerpc64* support#291

Merged
RyanGlScott merged 1 commit into
haskell:masterfrom
pkubaj:patch-1
Jul 2, 2026
Merged

cycles.c: add powerpc64* support#291
RyanGlScott merged 1 commit into
haskell:masterfrom
pkubaj:patch-1

Conversation

@pkubaj

@pkubaj pkubaj commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Currently build fails on FreeBSD/powerpc64{le,} without that.

@RyanGlScott RyanGlScott left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you for the pull request! One minor suggestion, but otherwise I'm happy to land this.

Comment thread criterion-measurement/cbits/cycles.c
Currently build fails on FreeBSD/powerpc64{le,} without that.

@RyanGlScott RyanGlScott left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@RyanGlScott RyanGlScott merged commit 92b3396 into haskell:master Jul 2, 2026
13 checks passed
RyanGlScott added a commit that referenced this pull request Jul 2, 2026
@RyanGlScott

Copy link
Copy Markdown
Member

I've uploaded criterion-measurement-0.2.5.0 to Hackage with these changes.

@pkubaj

pkubaj commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

The changelog says:

  • Support building on PowerPC.

But it's not really true. That instruction only works on 64-bit PowerPC, won't work on 32-bit. This is how glibc does it:
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/powerpc/sys/platform/ppc.h#l33

@pkubaj pkubaj deleted the patch-1 branch July 2, 2026 11:43
@RyanGlScott

Copy link
Copy Markdown
Member

Sorry, my mistake!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants