Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Makefile to support ppc64le #612

Closed
wants to merge 2 commits into from
Closed

Conversation

runlevel5
Copy link

@runlevel5 runlevel5 commented Aug 15, 2023

Fixed #610

@@ -377,6 +380,11 @@ ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu" "gnu")
ALTIVEC_CFLAGS = -maltivec
HAVE_VM_COMPILED=true
endif
ifeq ($(ARCH),ppc64le)
OPTIMIZE += -mcpu=power8
Copy link
Author

Choose a reason for hiding this comment

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

power8 is the lowest common denominator for LE support

@runlevel5 runlevel5 force-pushed the ppc64le branch 3 times, most recently from 8c6dfa2 to faeb486 Compare August 15, 2023 14:02
Comment on lines -427 to -430
else
ifeq ($(ARCH),ppc64)
BASE_CFLAGS += -m64
endif
Copy link
Author

Choose a reason for hiding this comment

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

There is no need to declare -m64 because we have specify -mcpu=power7|power8 that automatically set -m64

ifeq ($(ARCH),ppc64)
ALTIVEC_CFLAGS = -maltivec
Copy link
Author

Choose a reason for hiding this comment

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

There is no need to explicitly declare -maltivec because -mcpu=power7 would set that automatically for us

@NuclearMonster
Copy link
Member

Please resubmit when the PR is complete and ready for review.

@runlevel5 runlevel5 deleted the ppc64le branch August 17, 2023 00:39
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.

[Feature Request] Support PowerPC64 LE
2 participants