AndrejMitrovic/xfbuild — Issue #2: +h option doesn't work properly
Author: AndrejMitrovic
Created: 2011-11-27 03:28:17+00:00
State: open

This is carried over from the old xfbuild.

Existing .di headers and the one xfbuild creates end up conflicting. xfbuild also has issues with printing:

D:\dev\code\d_code\testing>xfbuild +h +onew\test.exe test.d
D:\DMD\dmd2\windows\bin\..\..\src\druntime\import\core\exception.di: Error: module exception SouDr:c\eD MfDi\ldem da2n\dw i'nhdeoawdse\rb'i nf\i.l.e\ .h.a\vser cs\admreu nntaimme\import\core\stdc\stdio.di: Error: module stdio Source file and 'header' file have same name 'D:\DMD\dmd2\windows\bin\..\..\src\drunDt:i\mDeMe\D i\'mdDpm:od\r2Dt\M\wDci\ondrdmeod\w2ss\t\wdbicin\nds\ot.wd.si\\o.b..id\nis\'r.
c.\..\src\druntime\import\core\exception.d\id'r
untime\import\core\sync\mutex.di: Error: module2011-11-27 04:19:02,022 Info [root] - Build failed: 'dmd @xfbuild.a27800.rsp' returned 1.
mu
abnormal program termination
tex Source file and 'headDe:r\'D MfDi\ldem dh2a\vwei snadmoew sn\ameb 'D:\DMDin\\d.
md.2\D:\dev\code\d_code\testing>\.w.i\nsdrocw\s\dbriunn\t.i.m\e.\.i\msprocr\td\rcuonrtei\mbei\tiompp.odrit:\ cEorrreo\rs:y nmco\dmuultee xb.idtio'p
Source file and 'header' file have same name 'D:\DMD\dmd2\windows\bin\..\..\src\druntime\import\core\bitop.di'

The latter issue is directly related to multithreading, using +threads=1 is a temporary workaround:
xfbuild +threads=1 +h +onew\test.exe test.d
D:\dev\code\d_code\testing>xfbuild +threads=1 +h +onew\test.exe test.d
D:\DMD\dmd2\windows\bin\..\..\src\druntime\import\core\stdc\stdio.di: Error: module stdio Source file and 'header' file have same name 'D:\DMD\dmd2\windows\bin\..\..\src\druntime\import\core\stdc\stdio.di'

Generally I've seen xfbuild fail with core modules a lot, which is going to be another upcoming fix.