www.digitalmars.com         C & C++   DMDScript  

D.gnu - GDC phobos source path

reply "John Colvin" <john.loughran.colvin gmail.com> writes:
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
Jun 23 2015
next sibling parent Johannes Pfau <nospam example.com> writes:
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
Jun 23 2015
prev sibling parent "Dicebot" <public dicebot.lv> writes:
https://github.com/Dicebot/Arch-PKGBUILDs/blob/master/gdc/folders.diff
Jun 23 2015