www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16946] New: rdmd causes linker issues when DMD options are

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 puremagic.com
          Reporter: andrej.mitrovich gmail.com

Using: v2.072.1

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


$ rdmd test.d


$ 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. --
Dec 03 2016