]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: uname: fix building in non-git source dir
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 7 Dec 2022 21:22:38 +0000 (22:22 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 7 Dec 2022 21:22:38 +0000 (22:22 +0100)
commit4949a82cde98886a79a962bf583cdbe9a2186078
tree6cc873687bdfd456765b75dcb241e4fbb449c570
parent97eb64b909bc0a47b3159ae7f7ef2060e4bb8d54
Cygwin: uname: fix building in non-git source dir

commit 97eb64b909bc broke building outside of a git dir, because
the git describe command would fail.  Fix this by checking if
we're in a git tree at all and just generate an empty string
as version string.  Use this in uname_x to generate a fallback
version.

Fixes: 97eb64b909bc ("Cygwin: uname: generate default release
string from git as well"
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/Makefile.am
winsup/cygwin/uname.cc
This page took 0.026484 seconds and 5 git commands to generate.