office-gobmx/solenv/gcc-wrappers/wrapper.hxx
Luboš Luňák c48a5f2653 support ccache for MSVC too
There's no official MSVC support in ccache yet, but there are patches
in progress of getting upstreamed. So right now it's necessary
to get a patched ccache.
Ccache cannot work with -Zi option, since sharing debuginfo in a .PDB
cannot be cached. Added --enable-z7-symbols that gets enabled
by default if ccache is detected.
It works even with PCHs enabled, and externals seem to work too.
I get almost 100% hit rate on a rebuild, although such a rebuild
is slower than on Linux.

Change-Id: I1d230ee1fccc441b9d9bec794cc2e1ec13161999
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125179
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2021-11-17 15:21:44 +01:00

28 lines
890 B
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef INCLUDED_SOLENV_GCC_WRAPPERS_WRAPPER_HXX
#define INCLUDED_SOLENV_GCC_WRAPPERS_WRAPPER_HXX
#include <string>
#include <iostream>
#include <vector>
std::string getexe(std::string exename, bool maybeempty = false);
void setupccenv();
std::string processccargs(const std::vector<std::string>& rawargs, std::string& env_prefix,
bool& verbose);
int startprocess(std::string command, std::string args, bool verbose);
#endif // INCLUDED_SOLENV_GCC_WRAPPERS_WRAPPER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */