1842 – Useless linker command line output during compilation on Linux

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1842 - Useless linker command line output during compilation on Linux
Summary: Useless linker command line output during compilation on Linux
Status: RESOLVED DUPLICATE of issue 1837
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Linux
: P2 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2008年02月16日 02:32 UTC by Andrei Alexandrescu
Modified: 2015年06月09日 05:14 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Andrei Alexandrescu 2008年02月16日 02:32:45 UTC
When compiling with dmd on linux, the linker command line is output, e.g.:
$ dmd test
gcc test.o -o test -m32 -Xlinker -L/home/andrei/d/dmd/bin/../lib -lphobos2 -lpthread -lm
$ _
The compiler should only output the linker command in case that failed. Normal linking should issue no message. This has to do with a principle of Unix: silence is golden. Here's the relevant excerpt from a great book (The Art of Unix Programming by Eric Raymond). It's a short and excellent read:
http://www.faqs.org/docs/artu/ch11s09.html
Andrei
Comment 1 Frank Benoit 2008年02月20日 16:01:53 UTC
*** This bug has been marked as a duplicate of 1837 ***


AltStyle によって変換されたページ (->オリジナル) /