diff options
author | Benoit Foucher <benoit@zeroc.com> | 2002-08-26 21:53:18 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2002-08-26 21:53:18 +0000 |
commit | 8d7c9b486f9c70e63a9bb2d4b75c501533e35015 (patch) | |
tree | e2029e47915797ff694c166d5c293dc9be38a035 /cpp/src/slice2cpp/Main.cpp | |
parent | Slice2JavaTask now checks for dependencies between slice files. (diff) | |
download | ice-8d7c9b486f9c70e63a9bb2d4b75c501533e35015.tar.bz2 ice-8d7c9b486f9c70e63a9bb2d4b75c501533e35015.tar.xz ice-8d7c9b486f9c70e63a9bb2d4b75c501533e35015.zip |
Fixes
Diffstat (limited to 'cpp/src/slice2cpp/Main.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Main.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cpp/src/slice2cpp/Main.cpp b/cpp/src/slice2cpp/Main.cpp index f20dacd6ce3..17f6500b355 100644 --- a/cpp/src/slice2cpp/Main.cpp +++ b/cpp/src/slice2cpp/Main.cpp @@ -30,6 +30,7 @@ usage(const char* n) "--output-dir DIR Create files in the directory DIR.\n" "--dll-export SYMBOL Use SYMBOL for DLL exports.\n" "--impl Generate sample implementations.\n" + "--depend Generate Makefile dependencies.\n" "-d, --debug Print debug messages.\n" "--ice Permit `Ice' prefix (for building Ice source code only)\n" ; @@ -227,12 +228,16 @@ main(int argc, char* argv[]) base.erase(0, pos + 1); } - string cmd = cpp + " -M -MT " + base + ".cpp " + argv[idx]; - #ifdef _WIN32 + // + // -MT is not supported by cygwin cpp so we just use the + // default. + // + string cmd = cpp + " -M " + argv[idx]; FILE* cppHandle = _popen(cmd.c_str(), "w"); _pclose(cppHandle); #else + string cmd = cpp + " -M -MT " + base + ".cpp " + argv[idx]; FILE* cppHandle = popen(cmd.c_str(), "w"); pclose(cppHandle); #endif |