bump product version to 7.2.5.1
[LibreOffice.git] / solenv / gcc-wrappers / g++.cxx
blob2f99d4606ac74f92d4a416bb7c27e6a6338b48a6
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 vector<string> rawargs(argv + 1, argv + argc);
16 string env_prefix; // defaults to REAL_
17 bool verbose = false;
18 string args = processccargs(rawargs, env_prefix, verbose);
20 string command = getexe(env_prefix + "CXX");
21 string flags = getexe(env_prefix + "CXX_FLAGS", true);
22 args.insert(0, flags.empty() ? string() : flags + " ");
24 setupccenv();
26 return startprocess(command, args, verbose);
29 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */