diff options
Diffstat (limited to 'rsc/source/prj/start.cxx')
-rw-r--r-- | rsc/source/prj/start.cxx | 15 |
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" ) ) |