Skip to content

Commit 9079f26

Browse files
committed
Make builds deterministic
- Remove use of __DATE__ and __TIME__, it was dead code anyway - Set ar to deterministic mode This allows consecutive rebuilds to produce identical binaries.
1 parent 360c5c7 commit 9079f26

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export LIBOGC_MINOR := 1
2626
export LIBOGC_PATCH := 0
2727

2828
include $(DEVKITPPC)/base_rules
29+
export AR := $(AR) -D
2930

3031
BUILD := build
3132

32-
DATESTRING := $(shell date +%Y%m%d)
3333
VERSTRING := $(shell printf "r%s.%s" "$$(git rev-list --count HEAD)" "$$(git rev-parse --short=7 HEAD)")
3434

3535
#---------------------------------------------------------------------------------

libogc/system.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ static sys_resetinfo mem_resetinfo = {
221221
127
222222
};
223223

224-
static const char *__sys_versiondate;
225224
static const char *__sys_versionbuild;
226225

227226
static void (*reload)(void) = (void(*)(void))0x80001800;
@@ -974,7 +973,7 @@ void* __SYS_GetIPCBufferHi(void)
974973
#endif
975974

976975
void _V_EXPORTNAME(void)
977-
{ __sys_versionbuild = _V_STRING; __sys_versiondate = _V_DATE_; }
976+
{ __sys_versionbuild = _V_STRING; }
978977

979978
#if defined(HW_RVL)
980979
void __SYS_DoPowerCB(void)

0 commit comments

Comments
 (0)