mirror of https://gitee.com/bigwinds/arangodb
Merge pull request #2033 from servusoft/patch-12
Setting "v8_use_snapshot=false" by CROSS_COMPILING
This commit is contained in:
commit
e10fbf1a1a
|
@ -488,7 +488,6 @@ else ()
|
|||
|
||||
list(APPEND V8_GYP_ARGS
|
||||
-Ibuild/standalone.gypi
|
||||
-Dv8_use_snapshot=true
|
||||
-Dmac_deployment_target=${CMAKE_OSX_DEPLOYMENT_TARGET}
|
||||
--depth=.
|
||||
-Dstandalone_static_library=1
|
||||
|
@ -498,6 +497,13 @@ else ()
|
|||
-Dwerror=
|
||||
)
|
||||
|
||||
if (CROSS_COMPILING)
|
||||
list(APPEND V8_GYP_ARGS -Dv8_use_snapshot=false )
|
||||
# dependenis 'v8_libbase' and 'v8_libplatform' need be added in v8.gyp (under 'v8_use_snapshot!="true"')
|
||||
else ()
|
||||
list(APPEND V8_GYP_ARGS -Dv8_use_snapshot=true )
|
||||
endif()
|
||||
|
||||
if (APPLE AND CMAKE_COMPILER_IS_CLANG)
|
||||
set(V8_CXXFLAGS "${V8_CXXFLAGS} -stdlib=libc++")
|
||||
set(V8_LDFLAGS "${V8_LDFLAGS} -stdlib=libc++")
|
||||
|
|
Loading…
Reference in New Issue