New issue
Advanced search Search tips

Issue 608867 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner: ----
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug

Blocking:
issue 354261



Sign in to add a comment

GN: changes in .def files don't force relinking

Project Member Reported by brettw@chromium.org, May 3 2016

Issue description

In GN you can list module definition files (*.def) as sources. This will automatically promote them to be arguments /DEF:... on the link line for that target.

But changes in the def file doesn't look like it forces a re-link. Currently the def file is added to the input deps. This sounds like it should work but this is added as an order-only dependency on all source file compilations for that target. This is neither necessary (since those build steps don't depend on the .def file at all) nor solves the problem (it needs to a non-order-only dependency on the link line).
 
Blocking: 354261
Cc: brucedaw...@chromium.org
Components: Build
Labels: -Build-Tools-GN Proj-GN-Migration
Is this still an issue? If so, it seems like we should fix it.
I can't repro this bug. This was my test:

ninja -C out\gn_release chrome_elf
touch chrome_elf\chrome_elf.def
ninja -C out\gn_release chrome_elf

The second invocation of ninja triggered a relink of chrome_elf.dll.

Unless there is a reason to believe that this is not representative then this bug is fixed.

Comment 3 by brettw@chromium.org, Jun 21 2016

Status: Fixed (was: Available)
The code looks like it does the right thing. The .def file is listed as an implicit input.

Sign in to add a comment