mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-24 11:09:48 +02:00
version string
This commit is contained in:
1 parent
72acd82f9f
commit
0fb9de9431
2 files changed
+9
-3
No files matched your search
@@ -25,10 +25,16 @@ LIBS += $(DEP)/lib/libusb-1.0.a
|
||||
|
||||
ifeq ($(DEV_BUILD),1)
|
||||
LIBS += $(DEP)/lib/libmenutw.a $(DEP)/lib/libncursestw.a
|
||||
CFLAGS += -O0 -g -DDEV_BUILD -fsanitize=address,undefined -fno-omit-frame-pointer -fsanitize-address-use-after-return=runtime
|
||||
CFLAGS += -O0 -g -DDEV_BUILD -fno-omit-frame-pointer
|
||||
ifeq ($(ASAN),1)
|
||||
CFLAGS += -DBUILD_STYLE="ASAN" -fsanitize=address,undefined -fsanitize-address-use-after-return=runtime
|
||||
else
|
||||
CFLAGS += -Os -g
|
||||
CFLAGS += -DBUILD_STYLE=\"DEVELOPMENT\"
|
||||
endif
|
||||
else
|
||||
CFLAGS += -Os -g -DBUILD_STYLE=\"RELEASE\"
|
||||
endif
|
||||
CFLAGS += -DBUILD_DATE="\"$(shell LANG=C date)\"" -DBUILD_WHOAMI=\"$(shell whoami)\" -DBUILD_TAG=\"$(shell git describe --dirty --tags --abbrev=7)\"
|
||||
|
||||
export SRC DEP CC CFLAGS LDFLAGS LIBS TARGET_OS DEV_BUILD
|
||||
|
||||
|
||||
+1
-1
@@ -199,7 +199,7 @@ int optparse(int argc, char* argv[]) {
|
||||
}
|
||||
}
|
||||
if (palerain_version) {
|
||||
printf("palera1n %s\n", PALERAIN_VERSION);
|
||||
printf("palera1n version " PALERAIN_VERSION ": " BUILD_DATE "; " BUILD_WHOAMI ":" BUILD_TAG "/" BUILD_STYLE "\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user