[PATCH] D42716: [COFF] make /incremental control overwriting unchanged import libraries

Bob Haarman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 30 15:55:43 PST 2018


inglorion added a comment.

Here is the observed behavior of link.exe:

  C> link -nologo -dll -out:test.dll test.obj
     Creating library test.lib and object test.exp
  
  C> link -nologo -dll -out:test.dll test.obj
     Creating library test.lib and object test.exp
  
  C> link -nologo -incremental -dll -out:test.dll test.obj
     Creating library test.lib and object test.exp
  
  C> link -nologo -incremental -dll -out:test.dll test.obj
  
  C> link -nologo -debug -dll -out:test.dll test.obj
     Creating library test.lib and object test.exp
  
  C> link -nologo -debug -dll -out:test.dll test.obj
  
  C> link -nologo -debug -incremental:no -dll -out:test.dll test.obj
     Creating library test.lib and object test.exp
  
  C> link -nologo -debug -incremental:no -dll -out:test.dll test.obj
     Creating library test.lib and object test.exp
  
  C> link -nologo -opt:icf -dll -out:test.dll test.obj
     Creating library test.lib and object test.exp
  
  C> link -nologo -opt:icf -dll -out:test.dll test.obj
     Creating library test.lib and object test.exp
  
  C> link -nologo -incremental -opt:icf -dll -out:test.dll test.obj
  LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
     Creating library test.lib and object test.exp
  
  C> link -nologo -incremental -opt:icf -dll -out:test.dll test.obj
  LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
     Creating library test.lib and object test.exp
  
  C> link -nologo -debug -opt:icf -dll -out:test.dll test.obj
     Creating library test.lib and object test.exp
  
  C> link -nologo -debug -opt:icf -dll -out:test.dll test.obj
     Creating library test.lib and object test.exp
  
  C> link -nologo -incremental -opt:icf -dll -out:test.dll test.obj
  LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
     Creating library test.lib and object test.exp
  
  C> link -nologo -incremental -opt:ref -dll -out:test.dll test.obj
  LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:REF' specification
     Creating library test.lib and object test.exp
  
  C> link -nologo -incremental -opt:ref -dll -out:test.dll test.obj
  LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:REF' specification
     Creating library test.lib and object test.exp
  
  C> link -nologo -debug -opt:ref -dll -out:test.dll test.obj
     Creating library test.lib and object test.exp
  
  C> link -nologo -debug -opt:ref -dll -out:test.dll test.obj
     Creating library test.lib and object test.exp
  
  C> link -nologo -incremental -opt:icf -dll -out:test.dll test.obj
  LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
     Creating library test.lib and object test.exp
  
  C> link -nologo -opt:icf -incremental -dll -out:test.dll test.obj
  LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
     Creating library test.lib and object test.exp
  
  C> link -nologo -ignore:4075 -opt:icf -incremental -dll -out:test.dll test.obj
  LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
     Creating library test.lib and object test.exp
  
  C> link -nologo -wx -ignore:4075 -opt:icf -incremental -dll -out:test.dll test.obj
  LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
  LINK : error LNK1218: warning treated as error; no output file generated


https://reviews.llvm.org/D42716





More information about the llvm-commits mailing list