diff options
Diffstat (limited to 'src/third_party/snappy-1.1.2/SConscript')
-rw-r--r-- | src/third_party/snappy-1.1.2/SConscript | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/third_party/snappy-1.1.2/SConscript b/src/third_party/snappy-1.1.2/SConscript index 5b405d1d141..53f946064b5 100644 --- a/src/third_party/snappy-1.1.2/SConscript +++ b/src/third_party/snappy-1.1.2/SConscript @@ -1,11 +1,16 @@ # -*- mode: python -*- Import("env") +Import("endian") + +env = env.Clone() if env.ToolchainIs('clang', 'GCC'): - env = env.Clone() env.Append(CCFLAGS=['-Wno-sign-compare', '-Wno-unused-function']) +if endian == "big": + env.Append(CPPDEFINES=['WORDS_BIGENDIAN']) + env.Library( target='snappy', source=[ |