View mode: basic / threaded / horizontal-split · Log in · Help
March 24, 2010
Re: Output of dmd and dmd.conf location
On Wed, 24 Mar 2010 16:40:51 -0500, Andrei Alexandrescu wrote:

> On 03/24/2010 04:35 PM, Moritz Warning wrote:
>> On Wed, 24 Mar 2010 16:06:02 -0500, Andrei Alexandrescu wrote:
>>
>>> On 03/24/2010 02:11 PM, Moritz Warning wrote:
>>>> On Wed, 24 Mar 2010 13:55:12 -0500, Andrei Alexandrescu wrote:
>>>>
>> [..]
>>>
>>> Absolutely. I never know the full logic by which dmd.conf is found,
>>> it's quite convoluted. You may want to submit a bugzilla enhancement
>>> request. I don't think the dmd binary is essential, after all you
>>> launched it so you can do a which dmd or whatever.
>> I wouldn't know how to do that on Windows. Linux beginners might have
>> the problem on Linux. - That one additional line wouldn't hurt.
>>
>>> But the name of the module being compiled would help.
>> I am not sure what you mean.
>> Do you mean "dmd -v" should write out the module name that is compiled
>> at that moment? Sounds good.
> 
> Yes. If there's a module declaration output that, otherwise output the
> module name as inferred from the file name.
> 
> Andrei

I would suggest to put it in a separate ticket.
Cupcakes are easier to sell than cake. :>
March 24, 2010
Re: Output of dmd and dmd.conf location
On Wed, 24 Mar 2010 13:34:05 -0700, Walter Bright wrote:

> Moritz Warning wrote:
>> Smth. like this would be helpful.
> 
> I like it. It's a good idea.

http://d.puremagic.com/issues/show_bug.cgi?id=4002
March 25, 2010
Re: Output of dmd and dmd.conf location
On 2010-03-24 17:42:49 -0400, Walter Bright <newshound1@digitalmars.com> said:

> argv0 is where the dmd binary is.

Not if you are calling dmd from a symbolic link; in this case, it'll be 
where the symbolic link is. That's why the D for Xcode installer puts a 
trampoline program to call dmd in /usr/local/bin/ instead of a symbolic 
link. The trampoline can adjust argv0 correctly.

-- 
Michel Fortin
michel.fortin@michelf.com
http://michelf.com/
Next ›   Last »
1 2
Top | Discussion index | About this forum | D home