[cfe-dev] First shot at Bug 4127 - The clang driver should support cross compilation
Konstantin Tokarev
annulen at yandex.ru
Tue Jan 10 01:02:09 PST 2012
10.01.2012, 01:00, "Sebastian Pop" <spop at codeaurora.org>:
> Hi,
>
> The attached patch uses the JSON parser to read the target
> from a config file. I would like to get some opinions on this
> patch before we go further to fix
> http://llvm.org/bugs/show_bug.cgi?id=4127
>
> In a first implementation, I would like to have at least the following
> information registered in the config file:
>
> [
> {
> "target": "arm-none-linux-gnueabi",
> "c-include-dirs": "/gcc/path:/libc/path",
> "cxx-include-root": "/some/other/path"
> }
> ]
>
I propose to embed Lua and use Lua table instead of JSON. Config could look like
toolchain {
target = "arm-none-linux-gnueabi",
c_include_dirs = { "/gcc/path", "/libc/path" },
cxx_include_root = "/some/other/path",
as = "/path/to/as",
ld = "/path/to/ld"
}
toolchain {
-- next toolchain definition
..
}
It would also bring scripting capabilities.
--
Regards,
Konstantin
More information about the cfe-dev
mailing list