1
0
Fork 0

Merge pull request #2033 from servusoft/patch-12

Setting "v8_use_snapshot=false" by CROSS_COMPILING
This commit is contained in:
Wilfried Goesgens 2016-09-02 09:53:41 +02:00 committed by GitHub
commit e10fbf1a1a
1 changed files with 7 additions and 1 deletions

View File

@ -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++")