Skip to content

Commit 75e3d8d

Browse files
committed
Bug 1485765 - use a compile-time determined endianness on aarch64 windows for sqlite; r=asuth
Credit to D. Richard Hipp for the idea.
1 parent 6a97abe commit 75e3d8d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

db/sqlite3/src/moz.build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ elif CONFIG['HAVE_64BIT_BUILD']:
9898
# This has obviously no effect in case of System Sqlite.
9999
DEFINES['SQLITE_TEMP_FILE_PREFIX'] = '"mz_etilqs_"'
100100

101+
# Our copy of sqlite3 doesn't know about AArch64 + Windows's endianness yet,
102+
# help it out. (This does non-Windows too, but that's OK.)
103+
if CONFIG['CPU_ARCH'] == 'aarch64':
104+
DEFINES['SQLITE_BYTEORDER'] = 1234
105+
101106
# Suppress warnings in third-party code.
102107
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
103108
CFLAGS += [

0 commit comments

Comments
 (0)