[Issue 16946] New: rdmd causes linker issues when DMD options are changed between runs

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Dec 3 15:34:26 PST 2016


https://issues.dlang.org/show_bug.cgi?id=16946

          Issue ID: 16946
           Summary: rdmd causes linker issues when DMD options are changed
                    between runs
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: tools
          Assignee: nobody at puremagic.com
          Reporter: andrej.mitrovich at gmail.com

Using: v2.072.1

test.d:
-----
module test;
void main() { }
-----

# first time is ok
$ rdmd test.d
>

# second run added -of switch
$ rdmd -oftest2.exe test.d
> OPTLINK (R) for Win32  Release 8.00.17
> Copyright (C) Digital Mars 1989-2013  All rights reserved.
> http://www.digitalmars.com/ctg/optlink.html
> C:\Users\andre\AppData\Local\Temp\.rdmd\rdmd-test.d-AAFFF766E367405BC6B3916FAE707D0D\objs\test.obj
>  Error 2: File Not Found C:\Users\andre\AppData\Local\Temp\.rdmd\rdmd-test.d-> AAFFF766E367405BC6B3916FAE707D0D\objs\test.obj
> Error: linker exited with status 18221464

Workaround is to use --force to rebuild.

I'm not entirely too sure but I think this may be a regression.

--


More information about the Digitalmars-d-bugs mailing list