Skip to content

Commit e66af5e

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 cc6b8f8 commit e66af5e

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
@@ -246,7 +246,6 @@ static sys_resetinfo mem_resetinfo = {
246246
127
247247
};
248248

249-
static const char *__sys_versiondate;
250249
static const char *__sys_versionbuild;
251250

252251
static __inline__ alarm_st* __lwp_syswd_open(syswd_t wd)
@@ -1036,7 +1035,7 @@ void* __SYS_GetIPCBufferHi(void)
10361035
#endif
10371036

10381037
void _V_EXPORTNAME(void)
1039-
{ __sys_versionbuild = _V_STRING; __sys_versiondate = _V_DATE_; }
1038+
{ __sys_versionbuild = _V_STRING; }
10401039

10411040
#if defined(HW_RVL)
10421041
void __SYS_DoPowerCB(void)

0 commit comments

Comments
 (0)