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

[WIP] Extend support for reporting of build platform #868

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion help.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,38 @@ extern void help_unknown_ref(const char *ref, const char *cmd, const char *error
* identify build platform
*/
#ifndef GIT_BUILD_PLATFORM
#if defined __x86__ || defined __i386__ || defined __i586__ || defined __i686__
#if defined __x86__ || defined __i386__
#define GIT_BUILD_PLATFORM "x86";
#elif defined __x86_64__
#define GIT_BUILD_PLATFORM "x86_64";
#elif defined __alpha__
#define GIT_BUILD_PLATFORM "alpha";
#elif defined __arm__
#define GIT_BUILD_PLATFORM "arm";
#elif defined __aarch64__
#define GIT_BUILD_PLATFORM "arm64";
#elif defined __BFIN__
#define GIT_BUILD_PLATFORM "blackfin";
#elif defined __convex__
#define GIT_BUILD_PLATFORM "convex";
#elif defined __hppa__
#define GIT_BUILD_PLATFORM "hppa";
#elif defined __ia64__
#define GIT_BUILD_PLATFORM "ia64";
#elif defined __m68k__
#define GIT_BUILD_PLATFORM "m68k";
#elif defined __mips__
#define GIT_BUILD_PLATFORM "mips";
#elif defined __ppc64__
#define GIT_BUILD_PLATFORM "ppc64";
#elif defined __powerpc__
#define GIT_BUILD_PLATFORM "powerpc";
#elif defined __sparc__
#define GIT_BUILD_PLATFORM "sparc";
#elif defined __sh__
#define GIT_BUILD_PLATFORM "sh";
#elif defined __s390__
#define GIT_BUILD_PLATFORM "s390";
#else
#define GIT_BUILD_PLATFORM "unknown";
#endif
Expand Down