summaryrefslogtreecommitdiff
path: root/idlc/source
diff options
context:
space:
mode:
authorRene Engelhard <rene@debian.org>2012-09-27 19:51:33 +0200
committerRene Engelhard <rene@debian.org>2012-09-27 22:45:03 +0200
commitc0fb5ed758c9ed8c1bb6b8344592c4781f475443 (patch)
tree92537d1c439601a5360115c2a31b86f9c289eb3e /idlc/source
parent4e6907b5d526241c93767fd25d8c2866c034a8d8 (diff)
add --with-system-ucpp
Change-Id: Ic322d1be23033049fa3b5cd60c00479bb6cae3ca
Diffstat (limited to 'idlc/source')
-rw-r--r--idlc/source/idlccompile.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx
index 0491046560a7..1acbf8440ede 100644
--- a/idlc/source/idlccompile.cxx
+++ b/idlc/source/idlccompile.cxx
@@ -299,6 +299,7 @@ sal_Int32 compileFile(const OString * pathname)
OUString cpp;
OUString startDir;
+#ifndef SYSTEM_UCPP
if (osl_getExecutableFile(&cpp.pData) != osl_Process_E_None) {
OSL_ASSERT(false);
}
@@ -311,7 +312,9 @@ sal_Int32 compileFile(const OString * pathname)
#else
cpp += OUString( RTL_CONSTASCII_USTRINGPARAM("ucpp"));
#endif
-
+#else // SYSTEM_UCPP
+ cpp = OUString( RTL_CONSTASCII_USTRINGPARAM(UCPP));
+#endif
oslProcess hProcess = NULL;
oslProcessError procError = osl_Process_E_None;