Flatpak build needs an explicit --without-system-rhino now
[LibreOffice.git] / solenv / gcc-wrappers / gcc.cxx
blob05dff957eec4455406b6a11afbdd4a52b943da9f
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 + "CC");
21 std::string flags = getexe(env_prefix + "CC_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: */