Removed the library=default option.
authorchristian.plesner.hansen <christian.plesner.hansen@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 29 Aug 2008 09:31:07 +0000 (09:31 +0000)
committerchristian.plesner.hansen <christian.plesner.hansen@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 29 Aug 2008 09:31:07 +0000 (09:31 +0000)
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@41 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

SConstruct

index d827852..94fbd3d 100644 (file)
@@ -278,8 +278,8 @@ SIMPLE_OPTIONS = {
     'help': 'build using snapshots for faster start-up'
   },
   'library': {
-    'values': ['static', 'shared', 'default'],
-    'default': 'default',
+    'values': ['static', 'shared'],
+    'default': 'static',
     'help': 'the type of library to produce'
   },
   'wordsize': {
@@ -374,10 +374,8 @@ class BuildContext(object):
   def ConfigureObject(self, env, input, **kw):
     if self.options['library'] == 'static':
       return env.StaticObject(input, **kw)
-    elif self.options['library'] == 'shared':
-      return env.SharedObject(input, **kw)
     else:
-      return env.Object(input, **kw)
+      return env.SharedObject(input, **kw)
 
 
 def PostprocessOptions(options):
@@ -428,14 +426,12 @@ def BuildSpecific(env, mode):
   # Link the object files into a library.
   if context.options['library'] == 'static':
     library = env.StaticLibrary(library_name, object_files)
-  elif context.options['library'] == 'shared':
+  else:
     # There seems to be a glitch in the way scons decides where to put
     # PDB files when compiling using MSVC so we specify it manually.
     # This should not affect any other platforms.
     pdb_name = library_name + '.dll.pdb'
     library = env.SharedLibrary(library_name, object_files, PDB=pdb_name)
-  else:
-    library = env.Library(library_name, object_files)
   context.library_targets.append(library)
   
   for sample in context.samples: