Thread overview
GDC phobos source path
Jun 23, 2015
John Colvin
Jun 23, 2015
Johannes Pfau
Jun 23, 2015
Dicebot
June 23, 2015
How does gdc know where to look for druntime/phobos source code? I successfully built gdc for the first time on OS X, but it's looking at completely the wrong source code.

I have gdc manually (i.e. make install) installed in /opt/gdc and ldc installed via homebrew in /usr/local, but when I try and compile anything with gdc I get

/usr/local/Cellar/ldc/0.15.2-beta1/include/d/core/stdc/config.d:28:3: error: static if conditional cannot be at global scope
   static if( (void*).sizeof > int.sizeof )
   ^

which makes very little sense to me. At the very least I would have expected it to see /usr/local/include/d or /usr/local/include/d2
June 23, 2015
Am Tue, 23 Jun 2015 15:37:35 +0000
schrieb "John Colvin" <john.loughran.colvin@gmail.com>:

> How does gdc know where to look for druntime/phobos source code? I successfully built gdc for the first time on OS X, but it's looking at completely the wrong source code.
> 
> I have gdc manually (i.e. make install) installed in /opt/gdc and ldc installed via homebrew in /usr/local, but when I try and compile anything with gdc I get
> 
> /usr/local/Cellar/ldc/0.15.2-beta1/include/d/core/stdc/config.d:28:3:
> error: static if conditional cannot be at global scope static
> if( (void*).sizeof > int.sizeof ) ^
> 
> which makes very little sense to me. At the very least I would have expected it to see /usr/local/include/d or /usr/local/include/d2

That's really strange. This code handles include paths: https://github.com/D-Programming-GDC/GDC/blob/master/gcc/d/d-incpath.cc
June 23, 2015
https://github.com/Dicebot/Arch-PKGBUILDs/blob/master/gdc/folders.diff