summaryrefslogtreecommitdiff
path: root/rsc/source/prj
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-26 22:32:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-26 22:32:13 +0200
commit7c5a21dd4142c414de4e5925533e8cfbb6f329b0 (patch)
treece244ac539f30a4334c7bb5897b0cde0872796c8 /rsc/source/prj
parentaa6495b6fa231abfe8b55a806ff6d5a306843cd3 (diff)
rsc: ignore -isystem args
Change-Id: Ic46b84d740159826542ead857d15230d54547d88
Diffstat (limited to 'rsc/source/prj')
-rw-r--r--rsc/source/prj/start.cxx15
1 files changed, 14 insertions, 1 deletions
diff --git a/rsc/source/prj/start.cxx b/rsc/source/prj/start.cxx
index 46c62a7a1f2f..7c7cc3288dea 100644
--- a/rsc/source/prj/start.cxx
+++ b/rsc/source/prj/start.cxx
@@ -235,7 +235,20 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
bool bSetSrs = false;
while( ppStr && i < (aCmdLine.GetCount() -1) )
{
- if( '-' == **ppStr )
+ if (strcmp(*ppStr, "-isystem") == 0)
+ {
+ // ignore "-isystem" and following arg
+ if (i < aCmdLine.GetCount() - 1)
+ {
+ ++ppStr;
+ ++i;
+ }
+ }
+ else if (strncmp(*ppStr, "-isystem", strlen("-isystem")) == 0)
+ {
+ // ignore args starting with "-isystem"
+ }
+ else if( '-' == **ppStr )
{
if( !rsc_stricmp( (*ppStr) + 1, "p" )
|| !rsc_stricmp( (*ppStr) + 1, "l" ) )