D.gnu - GDC phobos source path
- John Colvin (12/12) Jun 23 2015 How does gdc know where to look for druntime/phobos source code?
- Johannes Pfau (4/19) Jun 23 2015 That's really strange. This code handles include paths:
- Dicebot (1/1) Jun 23 2015 https://github.com/Dicebot/Arch-PKGBUILDs/blob/master/gdc/folders.diff
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
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/d2That'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