added protection in Makefile for cross-compile (although should not happen):

This commit is contained in:
nhmall
2019-11-24 12:39:00 -05:00
parent a9f33df64a
commit e6f5899200

View File

@@ -44,7 +44,9 @@ const char *NetHack_git_sha
#if !defined(CROSSCOMPILE) || (defined(CROSSCOMPILE) && defined(CROSSCOMPILE_HOST))
= NETHACK_GIT_SHA
#else
= NETHACK_HOST_GIT_SHA
#ifdef NETHACK_HOST_GIT_SHA
= NETHACK_HOST_GIT_SHA
#endif
#endif
;
#endif
@@ -54,8 +56,10 @@ const char *NetHack_git_branch
#if !defined(CROSSCOMPILE) || (defined(CROSSCOMPILE) && defined(CROSSCOMPILE_HOST))
= NETHACK_GIT_BRANCH
#else
#ifdef NETHACK_HOST_GIT_BRANCH
= NETHACK_HOST_GIT_BRANCH
#endif
#endif
;
#endif