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

Fix architecture detection on ppc64le #1344

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

taylordotfish
Copy link

juce_runtime_arch_detection.cpp currently identifies ppc64le as ppc64, which causes JUCE to use the directory name ppc64-linux for VST 3 plugin contents. However, VST 3 specifies that uname -m should be used as the first component of the directory name, which on 64-bit little-endian PowerPC is ppc64le.

Currently, this causes problems when building VST 3 plugins on this platform, as the VST 3 SDK expects the module directory to be named ppc64le-linux.

This PR adds an additional endianness check when 64-bit PowerPC is detected, outputting ppc64 or ppc64le as appropriate.

juce_runtime_arch_detection.cpp currently identifies ppc64le as ppc64,
which causes it to use the directory name `ppc64-linux` for VST 3 plugin
contents. However, VST 3 specifies that `uname -m` should be used as the
first component of the directory name, which on 64-bit little-endian
PowerPC is `ppc64le`.

Currently, this causes problems building VST 3 plugins on this platform,
as the VST 3 SDK expects the module directory to be named
`ppc64le-linux`.

This commit adds an additional endianness check when 64-bit PowerPC is
detected, outputting `ppc64` or `ppc64le` as appropriate.
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.

None yet

1 participant