forked from mirrors/gecko-dev
Bug 1485765 - use a compile-time determined endianness on aarch64 windows for sqlite; r=asuth
Credit to D. Richard Hipp for the idea.
This commit is contained in:
parent
d141575366
commit
4b3eec599a
1 changed files with 5 additions and 0 deletions
|
|
@ -98,6 +98,11 @@ elif CONFIG['HAVE_64BIT_BUILD']:
|
||||||
# This has obviously no effect in case of System Sqlite.
|
# This has obviously no effect in case of System Sqlite.
|
||||||
DEFINES['SQLITE_TEMP_FILE_PREFIX'] = '"mz_etilqs_"'
|
DEFINES['SQLITE_TEMP_FILE_PREFIX'] = '"mz_etilqs_"'
|
||||||
|
|
||||||
|
# Our copy of sqlite3 doesn't know about AArch64 + Windows's endianness yet,
|
||||||
|
# help it out. (This does non-Windows too, but that's OK.)
|
||||||
|
if CONFIG['CPU_ARCH'] == 'aarch64':
|
||||||
|
DEFINES['SQLITE_BYTEORDER'] = 1234
|
||||||
|
|
||||||
# Suppress warnings in third-party code.
|
# Suppress warnings in third-party code.
|
||||||
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
||||||
CFLAGS += [
|
CFLAGS += [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue