-
Notifications
You must be signed in to change notification settings - Fork 243
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 detecting arhitecture on raspberry pi #1342
Fix detecting arhitecture on raspberry pi #1342
Conversation
Detect arhotecture depending on size of void Related to smartdevicelink#1329
set(${ARCH} "x86" PARENT_SCOPE) | ||
elseif(ARCH_X64) | ||
set(${ARCH} "x64" PARENT_SCOPE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LuxoftAKutsan Do you know whether the change from x64
to x86_64
will break anything? From what I've seen of the CMake changes, it looks like this ARCH
value is only really relevant when building for Windows.
tools/cmake/helpers/platform.cmake
Outdated
if(ARCH_X86) | ||
if( CMAKE_SIZEOF_VOID_P MATCHES 8 ) | ||
# void ptr = 8 byte --> x86_64 | ||
set(${ARCH} "x86" PARENT_SCOPE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo, should be x64
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using this branch, cmake process now succeeds and builds fine on raspberry pi
@mrapitis grate! @jacobkeeler @JackLivio please review and merge |
I ran into the same "unsupported architecture" message when rebasing #1159 onto the new develop. Incorporating this fix resolved the issue. |
Detect architecture depending on size of void
Related to #1329