diff options
author | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2022-12-11 00:19:53 +0100 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2022-12-11 01:30:50 +0000 |
commit | b60dfc2928ef9763452c57f06073185456310609 (patch) | |
tree | b741e4561a85310affe885a18f6dc2b61eb6f72a | |
parent | 9b46020c262045aed0beace4708565235c2523cc (diff) |
Replace backslashes in config params before usage in cxx files
With cbfac11330882c7d0a817b6c37a08b2ace2b66f4, LOKit tries to pass
full configure line on via JSON - which, on Windows, might contain
backslashes and other nasties, so we better try to clean that up here.
Change-Id: I8314783fc6f49e9b2b374d94448ed735de39bf81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143940
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 6b5f50c2490e..ccce0a06b770 100644 --- a/configure.ac +++ b/configure.ac @@ -522,7 +522,9 @@ AC_DEFINE_UNQUOTED(LIBO_VERSION_PATCH,$LIBO_VERSION_PATCH) LIBO_THIS_YEAR=`date +%Y` AC_DEFINE_UNQUOTED(LIBO_THIS_YEAR,$LIBO_THIS_YEAR) -AC_DEFINE_UNQUOTED([BUILDCONFIG],[["$ac_configure_args"]],[Options passed to configure script]) +# replace backslashes, to get a valid c++ string +config_args=$(echo $ac_configure_args | tr '\\' '/') +AC_DEFINE_UNQUOTED([BUILDCONFIG],[["$config_args"]],[Options passed to configure script]) dnl =================================================================== dnl Product version |