bin/gbuild-to-ide | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 363444aa6e6a2a0a81d6a82c4a4d6417291f87a2 Author: Miklos Vajna <[email protected]> Date: Mon Apr 11 09:14:09 2016 +0200 vim-ide-integration: clang does not always like gnu++1y that much And gives the error: include/c++/4.8/cstdio:120:11: error: no member named 'gets' in the global namespace when it's build against libstdc++. Commit 9e6221f114ba4422caa79f38ee0a20fb8a8931cd (clang does not like gnu++11 that much, use c++11 instead, 2014-09-06) added support for invoking clang for IDE purposes even in a tree configured for gcc. Extend this in case configure sets -std=gnu++1y for gcc as well. Change-Id: Ib767ef8f30bd6eb9ac825a1521184041f1269d93 Reviewed-on: https://gerrit.libreoffice.org/23983 Reviewed-by: Miklos Vajna <[email protected]> Tested-by: Jenkins <[email protected]> diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide index f6835bd..ba683a9 100755 --- a/bin/gbuild-to-ide +++ b/bin/gbuild-to-ide @@ -464,7 +464,10 @@ class VimIntegrationGenerator(IdeIntegrationGenerator): command += cxxflag command += ' -c ' command += file - return command.replace('-std=gnu++11', '-std=c++11') + # Help clang when the tree is configured for gcc. + for gnu in ('-std=gnu++11', '-std=gnu++1y'): + command = command.replace(gnu, '-std=c++11') + return command class KdevelopIntegrationGenerator(IdeIntegrationGenerator): _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
