mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of github.com:arangodb/arangodb into devel
This commit is contained in:
commit
dfec0bb73d
|
@ -5,4 +5,4 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
base=$(dirname "$0")
|
base=$(dirname "$0")
|
||||||
exec python "${base}/gyp_main.py" "$@"
|
exec ${PYTHON_EXECUTABLE} "${base}/gyp_main.py" "$@"
|
||||||
|
|
|
@ -165,7 +165,7 @@ if __name__ == '__main__':
|
||||||
for f in glob.glob(os.path.join(v8_root, 'out', 'Makefile.*')):
|
for f in glob.glob(os.path.join(v8_root, 'out', 'Makefile.*')):
|
||||||
os.unlink(f)
|
os.unlink(f)
|
||||||
# --generator-output defines where the Makefile goes.
|
# --generator-output defines where the Makefile goes.
|
||||||
gyp_args.append('--generator-output=out')
|
# gyp_args.append('--generator-output=out')
|
||||||
# -Goutput_dir defines where the build output goes, relative to the
|
# -Goutput_dir defines where the build output goes, relative to the
|
||||||
# Makefile. Set it to . so that the build output doesn't end up in out/out.
|
# Makefile. Set it to . so that the build output doesn't end up in out/out.
|
||||||
gyp_args.append('-Goutput_dir=.')
|
gyp_args.append('-Goutput_dir=.')
|
||||||
|
|
|
@ -36,6 +36,9 @@
|
||||||
# useful.
|
# useful.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), '..'))
|
||||||
|
|
||||||
path = os.path.abspath(os.path.split(__file__)[0])
|
path = os.path.abspath(os.path.split(__file__)[0])
|
||||||
|
|
||||||
execfile(os.path.join(path, 'gyp_v8'))
|
execfile(os.path.join(path, 'gyp_v8'))
|
||||||
|
|
|
@ -673,6 +673,8 @@
|
||||||
],
|
],
|
||||||
}, # target_defaults
|
}, # target_defaults
|
||||||
}], # OS=="mac"
|
}], # OS=="mac"
|
||||||
|
['OS=="solaris"', {'defines': ['_GLIBCXX_USE_C99_MATH']}],
|
||||||
|
['OS=="solaris"', {'target_defaults': {'cflags': ['-m64'], 'ldflags': ['-march=x86-64', '-m64']}}],
|
||||||
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
|
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
|
||||||
or OS=="netbsd" or OS=="aix"', {
|
or OS=="netbsd" or OS=="aix"', {
|
||||||
'target_defaults': {
|
'target_defaults': {
|
||||||
|
@ -861,7 +863,7 @@
|
||||||
'EnableFunctionLevelLinking': 'true',
|
'EnableFunctionLevelLinking': 'true',
|
||||||
'RuntimeTypeInfo': 'false',
|
'RuntimeTypeInfo': 'false',
|
||||||
'WarningLevel': '3',
|
'WarningLevel': '3',
|
||||||
'WarnAsError': 'true',
|
'WarnAsError': 'false',
|
||||||
'DebugInformationFormat': '3',
|
'DebugInformationFormat': '3',
|
||||||
'Detect64BitPortabilityProblems': 'false',
|
'Detect64BitPortabilityProblems': 'false',
|
||||||
'conditions': [
|
'conditions': [
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
'ubsan%': 0,
|
'ubsan%': 0,
|
||||||
'ubsan_vptr%': 0,
|
'ubsan_vptr%': 0,
|
||||||
'v8_target_arch%': '<(target_arch)',
|
'v8_target_arch%': '<(target_arch)',
|
||||||
'v8_host_byteorder%': '<!(${PYTHON_EXECUTABLE} -c "import sys; print sys.byteorder")',
|
'v8_host_byteorder%': '<(byteorder)',
|
||||||
# Native Client builds currently use the V8 ARM JIT and
|
# Native Client builds currently use the V8 ARM JIT and
|
||||||
# arm/simulator-arm.cc to defer the significant effort required
|
# arm/simulator-arm.cc to defer the significant effort required
|
||||||
# for NaCl JIT support. The nacl_target_arch variable provides
|
# for NaCl JIT support. The nacl_target_arch variable provides
|
||||||
|
|
|
@ -191,6 +191,7 @@ struct bit_hash : public std::unary_function<T, size_t> {};
|
||||||
struct bit_equal_to<type> : public std::equal_to<type> {}; \
|
struct bit_equal_to<type> : public std::equal_to<type> {}; \
|
||||||
template <> \
|
template <> \
|
||||||
struct bit_hash<type> : public hash<type> {};
|
struct bit_hash<type> : public hash<type> {};
|
||||||
|
V8_BASE_BIT_SPECIALIZE_TRIVIAL(char)
|
||||||
V8_BASE_BIT_SPECIALIZE_TRIVIAL(signed char)
|
V8_BASE_BIT_SPECIALIZE_TRIVIAL(signed char)
|
||||||
V8_BASE_BIT_SPECIALIZE_TRIVIAL(unsigned char)
|
V8_BASE_BIT_SPECIALIZE_TRIVIAL(unsigned char)
|
||||||
V8_BASE_BIT_SPECIALIZE_TRIVIAL(short) // NOLINT(runtime/int)
|
V8_BASE_BIT_SPECIALIZE_TRIVIAL(short) // NOLINT(runtime/int)
|
||||||
|
|
|
@ -97,7 +97,9 @@ struct StaticallyAllocatedInstanceTrait {
|
||||||
char x[sizeof(T)];
|
char x[sizeof(T)];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef __INTEL_COMPILER
|
||||||
STATIC_ASSERT(V8_ALIGNOF(StorageType) >= V8_ALIGNOF(T));
|
STATIC_ASSERT(V8_ALIGNOF(StorageType) >= V8_ALIGNOF(T));
|
||||||
|
#endif
|
||||||
|
|
||||||
static T* MutableInstance(StorageType* storage) {
|
static T* MutableInstance(StorageType* storage) {
|
||||||
return reinterpret_cast<T*>(storage);
|
return reinterpret_cast<T*>(storage);
|
||||||
|
|
|
@ -54,7 +54,8 @@
|
||||||
[ 'want_separate_host_toolset==1', {
|
[ 'want_separate_host_toolset==1', {
|
||||||
'toolsets': [ '<(v8_toolset_for_d8)', ],
|
'toolsets': [ '<(v8_toolset_for_d8)', ],
|
||||||
}],
|
}],
|
||||||
['(OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="netbsd" \
|
['OS=="solaris"', {'defines': ['_GLIBCXX_USE_C99_MATH'], 'ldflags': ['-march=x86-64', '-m64']}],
|
||||||
|
['(OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="netbsd" \
|
||||||
or OS=="openbsd" or OS=="solaris" or OS=="android" \
|
or OS=="openbsd" or OS=="solaris" or OS=="android" \
|
||||||
or OS=="qnx" or OS=="aix")', {
|
or OS=="qnx" or OS=="aix")', {
|
||||||
'sources': [ 'd8-posix.cc', ]
|
'sources': [ 'd8-posix.cc', ]
|
||||||
|
@ -130,7 +131,7 @@
|
||||||
'<(SHARED_INTERMEDIATE_DIR)/d8-js.cc',
|
'<(SHARED_INTERMEDIATE_DIR)/d8-js.cc',
|
||||||
],
|
],
|
||||||
'action': [
|
'action': [
|
||||||
'python',
|
'<(PYTHON_EXECUTABLE)',
|
||||||
'../tools/js2c.py',
|
'../tools/js2c.py',
|
||||||
'<@(_outputs)',
|
'<@(_outputs)',
|
||||||
'D8',
|
'D8',
|
||||||
|
|
|
@ -335,7 +335,7 @@
|
||||||
'<(generated_file)',
|
'<(generated_file)',
|
||||||
],
|
],
|
||||||
'action': [
|
'action': [
|
||||||
'python',
|
'<(PYTHON_EXECUTABLE)',
|
||||||
'../../tools/js2c.py',
|
'../../tools/js2c.py',
|
||||||
'<@(_outputs)',
|
'<@(_outputs)',
|
||||||
'TEST', # type
|
'TEST', # type
|
||||||
|
|
|
@ -37,7 +37,8 @@
|
||||||
'U_STATIC_IMPLEMENTATION',
|
'U_STATIC_IMPLEMENTATION',
|
||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
|
['OS=="solaris"', {'defines': ['_GLIBCXX_USE_C99_MATH'], 'cflags': ['-m64']}],
|
||||||
|
['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS!="solaris" \
|
||||||
or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \
|
or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \
|
||||||
(target_arch=="arm" or target_arch=="ia32" or \
|
(target_arch=="arm" or target_arch=="ia32" or \
|
||||||
target_arch=="mipsel")', {
|
target_arch=="mipsel")', {
|
||||||
|
|
|
@ -42,8 +42,10 @@
|
||||||
* and define _XOPEN_SOURCE to different values depending on __STDC_VERSION__.
|
* and define _XOPEN_SOURCE to different values depending on __STDC_VERSION__.
|
||||||
* In C++ source code (e.g., putil.cpp), __STDC_VERSION__ is not defined at all.
|
* In C++ source code (e.g., putil.cpp), __STDC_VERSION__ is not defined at all.
|
||||||
*/
|
*/
|
||||||
|
#if !defined(_SCO_DS)
|
||||||
# define _XOPEN_SOURCE 600
|
# define _XOPEN_SOURCE 600
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Make sure things like readlink and such functions work.
|
* Make sure things like readlink and such functions work.
|
||||||
|
@ -52,9 +54,11 @@
|
||||||
*
|
*
|
||||||
* z/OS needs this definition for timeval and to get usleep.
|
* z/OS needs this definition for timeval and to get usleep.
|
||||||
*/
|
*/
|
||||||
|
#if !defined(__sun) && !defined(_SCO_DS)
|
||||||
#if !defined(_XOPEN_SOURCE_EXTENDED)
|
#if !defined(_XOPEN_SOURCE_EXTENDED)
|
||||||
# define _XOPEN_SOURCE_EXTENDED 1
|
# define _XOPEN_SOURCE_EXTENDED 1
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* There is an issue with turning on _XOPEN_SOURCE_EXTENDED on certain platforms.
|
* There is an issue with turning on _XOPEN_SOURCE_EXTENDED on certain platforms.
|
||||||
|
|
|
@ -23,7 +23,7 @@ LD_RPATH= -R'$$'ORIGIN
|
||||||
LD_RPATH_PRE= -R
|
LD_RPATH_PRE= -R
|
||||||
|
|
||||||
## Compiler switch to embed a library name
|
## Compiler switch to embed a library name
|
||||||
LD_SONAME = -h $(notdir $(MIDDLE_SO_TARGET))
|
LD_SONAME = -Wl,-h,$(notdir $(MIDDLE_SO_TARGET))
|
||||||
|
|
||||||
## Shared library options
|
## Shared library options
|
||||||
LD_SOOPTIONS= -Wl,-Bsymbolic
|
LD_SOOPTIONS= -Wl,-Bsymbolic
|
||||||
|
|
|
@ -1471,7 +1471,7 @@
|
||||||
'variables': {
|
'variables': {
|
||||||
'gyp_generators': '<!(echo $GYP_GENERATORS)',
|
'gyp_generators': '<!(echo $GYP_GENERATORS)',
|
||||||
},
|
},
|
||||||
'msvs_disabled_warnings': [4351, 4355, 4800],
|
'msvs_disabled_warnings': [4312, 4351, 4355, 4800],
|
||||||
# When building Official, the .lib is too large and exceeds the 2G
|
# When building Official, the .lib is too large and exceeds the 2G
|
||||||
# limit. This breaks it into multiple pieces to avoid the limit.
|
# limit. This breaks it into multiple pieces to avoid the limit.
|
||||||
# See http://crbug.com/485155.
|
# See http://crbug.com/485155.
|
||||||
|
@ -1723,6 +1723,7 @@
|
||||||
]},
|
]},
|
||||||
],
|
],
|
||||||
['OS=="solaris"', {
|
['OS=="solaris"', {
|
||||||
|
'defines': ['_GLIBCXX_USE_C99_MATH'],
|
||||||
'link_settings': {
|
'link_settings': {
|
||||||
'libraries': [
|
'libraries': [
|
||||||
'-lnsl -lrt',
|
'-lnsl -lrt',
|
||||||
|
@ -1772,7 +1773,7 @@
|
||||||
'../../src/base/platform/platform-win32.cc',
|
'../../src/base/platform/platform-win32.cc',
|
||||||
'../../src/base/win32-headers.h',
|
'../../src/base/win32-headers.h',
|
||||||
],
|
],
|
||||||
'msvs_disabled_warnings': [4351, 4355, 4800],
|
'msvs_disabled_warnings': [4312, 4351, 4355, 4800],
|
||||||
'link_settings': {
|
'link_settings': {
|
||||||
'libraries': [ '-lwinmm.lib', '-lws2_32.lib' ],
|
'libraries': [ '-lwinmm.lib', '-lws2_32.lib' ],
|
||||||
},
|
},
|
||||||
|
@ -1946,6 +1947,7 @@
|
||||||
{
|
{
|
||||||
'action_name': 'js2c',
|
'action_name': 'js2c',
|
||||||
'inputs': [
|
'inputs': [
|
||||||
|
'<(PYTHON_EXECUTABLE)',
|
||||||
'../../tools/js2c.py',
|
'../../tools/js2c.py',
|
||||||
'<@(library_files)',
|
'<@(library_files)',
|
||||||
'<@(i18n_library_files)'
|
'<@(i18n_library_files)'
|
||||||
|
@ -1963,6 +1965,7 @@
|
||||||
{
|
{
|
||||||
'action_name': 'js2c_bin',
|
'action_name': 'js2c_bin',
|
||||||
'inputs': [
|
'inputs': [
|
||||||
|
'<(PYTHON_EXECUTABLE)',
|
||||||
'../../tools/js2c.py',
|
'../../tools/js2c.py',
|
||||||
'<@(library_files)',
|
'<@(library_files)',
|
||||||
'<@(i18n_library_files)'
|
'<@(i18n_library_files)'
|
||||||
|
|
Loading…
Reference in New Issue