Bug 16946 – rdmd causes linker issues when DMD options are changed between runs
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P1
Component
tools
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2016-12-03T23:34:26Z
Last change time
2020-06-05T12:17:31Z
Assigned to
No Owner
Creator
Andrej Mitrovic
Comments
Comment #0 by andrej.mitrovich — 2016-12-03T23:34:26Z
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.
Comment #1 by pro.mathias.lang — 2020-06-05T12:17:31Z