|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
digitalmars.D - Disabling the Phobos include path?
I'm doing some experimenting with writing Windows kernel-mode code in D. (It's nothing to get excited about at the moment, I'm still just feeling my way around). This involves replacing Phobos, because of course you can't run Phobos or the std.c libraries in kernel mode as-is. Anyway, I'd like to disable the compiler's use of \dmd\src\phobos\std\* include path. Is there any way to do this with a compiler switch? I can specify -I followed by my own include paths, but anything not found there will still be searched for in the usual Phobos location. I'm writing the pieces of the runtime library as I need them, but I need the compiler to fail if something isn't written yet, not go grab the user-mode code. I seem to remember reading something about this at one point, but now I can't find it. If the answer is no, my next question is, shouldn't there be a way to do this? (Short of renaming the Phobos directory so the compiler can't find it). - Geoff Mar 08 2005
Geoff Hickey wrote:I'm doing some experimenting with writing Windows kernel-mode code in D. (It's nothing to get excited about at the moment, I'm still just feeling my way around). This involves replacing Phobos, because of course you can't run Phobos or the std.c libraries in kernel mode as-is. Anyway, I'd like to disable the compiler's use of \dmd\src\phobos\std\* include path. Is there any way to do this with a compiler switch? I can specify -I followed by my own include paths, but anything not found there will still be searched for in the usual Phobos location. I'm writing the pieces of the runtime library as I need them, but I need the compiler to fail if something isn't written yet, not go grab the user-mode code. I seem to remember reading something about this at one point, but now I can't find it. If the answer is no, my next question is, shouldn't there be a way to do this? (Short of renaming the Phobos directory so the compiler can't find it). - Geoff Mar 09 2005
Carlos Santander B. wrote:Anyway, I'd like to disable the compiler's use of \dmd\src\phobos\std\* include path. Mar 09 2005
Carlos Santander B. wrote:Geoff Hickey wrote:Anyway, I'd like to disable the compiler's use of \dmd\src\phobos\std\* include path. Is there any way to do this with a compiler switch? I can specify -I followed by my own include paths, but anything not found there will still be searched for in the usual Phobos location. I'm writing the pieces of the runtime library as I need them, but I need the compiler to fail if something isn't written yet, not go grab the user-mode code. Mar 09 2005
|