Don't expect .ilk for static libraries.
authorDavid Anderson <dvander@alliedmods.net>
Sat Feb 01 17:20:08 2014 -0800 (2014-02-01)
changeset 2290b0ab4511dc6
parent 228 a06e21c3278a
child 230 bdb80603bb85
Don't expect .ilk for static libraries.
ambuild2/frontend/cpp.py
     1.1 --- a/ambuild2/frontend/cpp.py	Sat Feb 01 17:15:39 2014 -0800
     1.2 +++ b/ambuild2/frontend/cpp.py	Sat Feb 01 17:20:08 2014 -0800
     1.3 @@ -459,8 +459,9 @@
     1.4      self.linker_outputs = [self.outputFile]
     1.5      self.debug_entry = None
     1.6  
     1.7 -    if self.linker_.behavior == 'msvc' and '/INCREMENTAL:NO' not in self.argv:
     1.8 -      self.linker_outputs += [self.name_ + '.ilk']
     1.9 +    if self.linker_.behavior == 'msvc' and not isinstance(self, StaticLibrary):
    1.10 +      if '/INCREMENTAL:NO' not in self.argv:
    1.11 +        self.linker_outputs += [self.name_ + '.ilk']
    1.12  
    1.13      if self.compiler.debuginfo:
    1.14        self.perform_symbol_steps(cx)