mirror of https://gitee.com/bigwinds/arangodb
added TRI_FORCE_ARMV6
This commit is contained in:
parent
81fd0e9994
commit
1748e403e4
|
@ -1037,6 +1037,11 @@ bool ApplicationV8::prepare () {
|
|||
v8::V8::SetFlagsFromString(_v8Options.c_str(), (int) _v8Options.size());
|
||||
}
|
||||
|
||||
#ifdef TRI_FORCE_ARMV6
|
||||
const string forceARMv6 = "--noenable-armv7";
|
||||
v8::V8::SetFlagsFromString(forceARMv6.c_str(), (int) forceARMv6.size());
|
||||
#endif
|
||||
|
||||
// use a minimum of 1 second for GC
|
||||
if (_gcFrequency < 1) {
|
||||
_gcFrequency = 1;
|
||||
|
|
|
@ -2348,9 +2348,7 @@ int main (int argc, char* args[]) {
|
|||
// .............................................................................
|
||||
|
||||
v8::V8::InitializeICU();
|
||||
v8::Platform* platform = v8::platform::CreateDefaultPlatform();
|
||||
|
||||
v8::V8::InitializePlatform(platform);
|
||||
// set V8 options
|
||||
if (! V8Options.empty()) {
|
||||
// explicit option --javascript.v8-options used
|
||||
|
@ -2361,6 +2359,14 @@ int main (int argc, char* args[]) {
|
|||
v8::V8::SetFlagsFromCommandLine(&argc, args, true);
|
||||
}
|
||||
|
||||
#ifdef TRI_FORCE_ARMV6
|
||||
const string forceARMv6 = "--noenable-armv7";
|
||||
v8::V8::SetFlagsFromString(forceARMv6.c_str(), (int) forceARMv6.size());
|
||||
#endif
|
||||
|
||||
v8::Platform* platform = v8::platform::CreateDefaultPlatform();
|
||||
v8::V8::InitializePlatform(platform);
|
||||
|
||||
BufferAllocator bufferAllocator;
|
||||
v8::V8::SetArrayBufferAllocator(&bufferAllocator);
|
||||
|
||||
|
|
Loading…
Reference in New Issue