tdf#130857 qt weld: Support mail merge "Server Auth" dialog
[LibreOffice.git] / solenv / gcc-wrappers / g++.cxx
blob6b352e64c845f9ff86e6c533aa40c86f95843951
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #include "wrapper.hxx"
12 int main(int argc, char* argv[])
14 std::vector<std::string> rawargs(argv + 1, argv + argc);
16 std::string env_prefix; // defaults to REAL_
17 bool verbose = false;
18 std::string args = processccargs(rawargs, env_prefix, verbose);
20 std::string command = getexe(env_prefix + "CXX");
21 std::string flags = getexe(env_prefix + "CXX_FLAGS", true);
22 args.insert(0, flags.empty() ? std::string() : flags + " ");
24 setupccenv();
26 return startprocess(command, args, verbose);
29 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */