Bug 13109 – -run and -lib dmd flags conflict

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2014-07-12T15:39:00Z
Last change time
2014-08-22T08:04:31Z
Keywords
pull
Assigned to
nobody
Creator
lio+bugzilla

Comments

Comment #0 by lio+bugzilla — 2014-07-12T15:39:33Z
dmd -lib -run blah.d This will create the static library but not actually link/run the binary. On posix this results in an SIGSEGV because the "exefile" variable is NULL. I suggest to make this an error.
Comment #1 by lio+bugzilla — 2014-07-12T15:49:02Z
Comment #2 by github-bugzilla — 2014-07-12T16:47:51Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/750b48c6183f7ffa3b5f58d7e07ea1a4604a34cb Issue 13109 - Show error on conflicting args -lib and -run https://github.com/D-Programming-Language/dmd/commit/8f3af623d29be3fc65c5d358e6ba0406fbd92e02 Merge pull request #3751 from lionello/fix13109 Issue 13109 - Show error on conflicting args -lib and -run
Comment #3 by github-bugzilla — 2014-07-16T03:52:25Z
Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f9d90b0bfe7a4c92dc4f684c5324ee6bdd7097d9 Merge pull request #3751 from lionello/fix13109 Issue 13109 - Show error on conflicting args -lib and -run
Comment #4 by github-bugzilla — 2014-08-22T08:04:31Z