Skip to content

Add support for powerpc64[le] systems#684

Open
madscientist159 wants to merge 1 commit intomicrosoft:mainfrom
madscientist159:main
Open

Add support for powerpc64[le] systems#684
madscientist159 wants to merge 1 commit intomicrosoft:mainfrom
madscientist159:main

Conversation

@madscientist159
Copy link

This requires POWER ISA 3.0 or higher
Older ISA variants lack current deployment and required features

This requires POWER ISA 3.0 or higher
Older ISA variants lack current deployment and required features
Big endian systems are NOT supported

Signed-off-by: Timothy Pearson <tpearson@raptorcs.com>
list(APPEND COMPILER_SWITCHES $<IF:$<CXX_COMPILER_ID:MSVC>,/favor:AMD64 /arch:AVX,-march=btver2>)
elseif(${DIRECTX_ARCH} MATCHES "^powerpc64")
list(APPEND COMPILER_DEFINES NO_WARN_X86_INTRINSICS)
list(APPEND COMPILER_SWITCHES -m64 -mcpu=power9 -maltivec)
Copy link
Member

Choose a reason for hiding this comment

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

Does CMake already add -m64 here or is an explicit set required?

@walbourn
Copy link
Member

Would you be willing to make the same PR to DirectXMesh and see if it builds for you?

https://github.com/microsoft/DirectXMesh

@madscientist159
Copy link
Author

madscientist159 commented Mar 20, 2026

Would you be willing to make the same PR to DirectXMesh and see if it builds for you?

https://github.com/microsoft/DirectXMesh

Sure, can do!

EDIT: microsoft/DirectXMesh#276

@walbourn walbourn self-assigned this Mar 20, 2026
@walbourn walbourn added the cmake Related to CMake build label Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmake Related to CMake build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants