sample shell does not link against shared lib due to latest change
authoryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 14 Jul 2011 10:46:45 +0000 (10:46 +0000)
committeryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 14 Jul 2011 10:46:45 +0000 (10:46 +0000)
Review URL: http://codereview.chromium.org/7366004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8652 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

samples/shell.cc

index 3c78ea4cb4366746cb24f0442fd34ea76220b9c1..f37e731f389d6ebffdf63f759ea4a51e227c1848 100644 (file)
@@ -95,10 +95,12 @@ class SourceGroup {
                   begin_offset_(0),
                   end_offset_(0) { }
 
+#if !(defined(USING_V8_SHARED) || defined(V8_SHARED))
   ~SourceGroup() {
     delete next_semaphore_;
     delete done_semaphore_;
   }
+#endif  // USING_V8_SHARED
 
   void Begin(char** argv, int offset) {
     argv_ = const_cast<const char**>(argv);