www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - DMD -i option, simple question...

reply WhatMeWorry <kheaser gmail.com> writes:
The DMD forum mentions internal design. This is more of a 
beginner usage question.

---------------------  from Compiler Switches 
-----------------------------

-I=directory
     Look for imports also in directory

-i[=pattern ]

     Enables "include imports" mode, where the compiler will 
include imported modules in the compilation, as if they were 
given on the command line. By default, when this option is 
enabled, all imported modules are included except those in 
druntime/phobos

----------------------------------------------------------------------------

The "..when this option is enabled..." is exactly the behavior I 
want, but how is it enabled?  Is there an "all inclusive pattern" 
that I'm missing.
Nov 19 2020
parent Adam D. Ruppe <destructionator gmail.com> writes:
On Friday, 20 November 2020 at 03:06:37 UTC, WhatMeWorry wrote:
 The "..when this option is enabled..." is exactly the behavior 
 I want, but how is it enabled?  Is there an "all inclusive 
 pattern" that I'm missing.
dmd -i yourfile.d that's the default it is describing when you don't specify any pattern.
Nov 19 2020