[cfe-dev] First shot at Bug 4127 - The clang driver should support cross compilation

Sebastian Pop spop at codeaurora.org
Mon Jan 9 13:00:30 PST 2012


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

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"

In a second step, I would like to add the full explicit path to the
assembler, to the linker, the -L paths, and the -I paths.

I would like the default config file to be created by the configure scripts,
and all the logic that is currently executed at each clang compilation
to be moved to configure time.

One other point to be discussed is the place where to install these
target config files: in the current patch I am looking in targets, a subdir
of the install dir.  Is there a better place to put these config files?

Qualcomm Innovation Center, Inc is a member of Code Aurora Forum
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-read-the-target-from-a-config-file.patch
Type: text/x-diff
Size: 4631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120109/f817f5b1/attachment.patch>

More information about the cfe-dev mailing list