Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Ticket #24 (closed defect: fixed)

Opened 18 years ago

Last modified 18 years ago

Fails to use .di files

Reported by: kris Assigned to: derek
Priority: Urgent Component: core
Version: 3.0 Severity: major
Keywords: Cc:

Description

Ran into a problem with Build vis-a-vis .di files ~ Build sees the module reference, and adds the module to the list of things that dmd should operate upon. However, dmd doesn't like to be handed (command line) references to .di files in any shape or form; and barfs when you try it. In other words, a reference to a .di file must only be loaded implicitly by dmd. I'm not quite sure what to make of that, but there it is.

To get around the issue, one can add a pragma(nolink) to the file, and rename it .d instead of .di, since Build otherwise ignores the .di file completely and adds a .d reference into the list of things to compile (not good).

Change History

06/08/06 04:37:24 changed by Derek Parnell

  • status changed from new to closed.
  • resolution set to fixed.

It now scans for a .di form of an imported module and failing to find one will scan for the .d form of the name. If either are found it treats the file as D source code.