Branch libreoffice-5-0-4
[LibreOffice.git] / solenv / gcc-wrappers / gcc.cxx
blobf34c2dba8c99150d304e0bf49e91fbbe9dc3d84e
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[]) {
13 vector<string> rawargs(argv + 1, argv + argc);
15 string command=getexe("REAL_CC");
16 string flags=getexe("REAL_CC_FLAGS", true);
18 string args=flags.empty() ? string() : flags + " ";
19 args += processccargs(rawargs);
21 setupccenv();
23 return startprocess(command,args);
27 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */