diff options
Diffstat (limited to 'cpp/src/slice2py/Main.cpp')
-rw-r--r-- | cpp/src/slice2py/Main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/slice2py/Main.cpp b/cpp/src/slice2py/Main.cpp index 2053ebef0c8..58fc3a9f47c 100644 --- a/cpp/src/slice2py/Main.cpp +++ b/cpp/src/slice2py/Main.cpp @@ -477,6 +477,15 @@ compile(int argc, char* argv[]) for(i = args.begin(); i != args.end(); ++i) { + // + // Ignore duplicates. + // + vector<string>::iterator p = find(args.begin(), args.end(), *i); + if(p != i) + { + continue; + } + if(depend) { PreprocessorPtr icecpp = Preprocessor::create(argv[0], *i, cppArgs); |