1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
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_
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
+ " ");
26 return startprocess(command
, args
, verbose
);
29 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */