1
0
mirror of /repos/Prototyper.git synced 2025-12-30 06:31:32 +01:00

add ARM support

This commit is contained in:
Aiko Mastboom 2013-05-08 00:08:11 +02:00
parent da411e3da3
commit 7d3c39c259

View File

@ -20,8 +20,9 @@ arch=`uname -m`
if [[ "${arch}" == 'armv6l' ]]; then
# ARM support: https://github.com/mongodb/js-bson/issues/37
rm -rf ./node_modules/bson/build
${SED} -e s/#define USE_MISALIGNED_MEMORY_ACCESS 1/#define USE_MISALIGNED_MEMORY_ACCESS 0/g ./node_modules/bson/ext/bson.h
npm install bson
${SED} -e "s/#define USE_MISALIGNED_MEMORY_ACCESS 1/#define USE_MISALIGNED_MEMORY_ACCESS 0/g" ./node_modules/bson/ext/bson.h
head ./node_modules/bson/ext/bson.h | grep USE_MISALIGNED_MEMORY_ACCESS
npm rebuild bson
fi
# patch ShareJS client