wilzbach / tools-test

1 stars 0 forks source link

rdmd causes linker issues when DMD options are changed between runs #151

Open wilzbach opened 7 years ago

wilzbach commented 7 years ago

Note: the issue was created automatically migrated from https://issues.dlang.org

Original bug ID: BZ#16946 From: Andrej Mitrovic <andrej.mitrovich@gmail.com> Reported version: D2

wilzbach commented 7 years ago

Comment author: Andrej Mitrovic <andrej.mitrovich@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.