[Libreoffice-commits] core.git: solenv/gcc-wrappers
Michael Meeks
michael.meeks at collabora.com
Wed Sep 18 09:09:45 PDT 2013
solenv/gcc-wrappers/wrapper.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 5f0145818cba17558708ef731e2bcc6a0b92a9f7
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Wed Sep 18 17:05:21 2013 +0100
gcc-wrapper: warn on invalid path names.
Change-Id: Ib057d519485da3a454bad579675ae718c42155eb
diff --git a/solenv/gcc-wrappers/wrapper.cxx b/solenv/gcc-wrappers/wrapper.cxx
index 42ead2f..d83423d 100644
--- a/solenv/gcc-wrappers/wrapper.cxx
+++ b/solenv/gcc-wrappers/wrapper.cxx
@@ -87,7 +87,11 @@ string processccargs(vector<string> rawargs) {
for(vector<string>::iterator i = rawargs.begin(); i != rawargs.end(); ++i) {
args.append(" ");
- if(*i == "-o") {
+ if(i->find("/") == 0) {
+ cerr << "Error: absolute unix path passed that looks like an option: '" << *i << "'";
+ args.append(*i);
+ }
+ else if(*i == "-o") {
// TODO: handle more than just exe output
++i;
size_t dot=(*i).find_last_of(".");
More information about the Libreoffice-commits
mailing list