[llvm-commits] cross building fixes

Sandeep Patel deeppatel1987 at gmail.com
Wed Aug 5 02:59:52 PDT 2009


The attached patches attempt to fix cross builds. For example, if you
try to use i686-darwin to build for arm-eabi, you'll quickly run into
several false assumptions that the target OS must be the same as the
host OS. These patches split $(OS) into $(HOST_OS) and $(TARGET_OS) to
help builds like "make check" and the test-suite able to cross
compile. Along the way a target of *-unknown-eabi is defined as
"Freestanding" so that TARGET_OS checks have something to work with.

Also attached is a patch to add a definition for
__STDC_CONSTANT_MACROS so that llvm2cpp doesn't fail during make check
on a cross.

deep
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deep-llvm-cross-builds.diff
Type: application/octet-stream
Size: 10058 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090805/18d822ca/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deep-llvm-llvm2cpp-cross.diff
Type: application/octet-stream
Size: 741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090805/18d822ca/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deep-testsuite-cross.diff
Type: application/octet-stream
Size: 9096 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090805/18d822ca/attachment-0002.obj>


More information about the llvm-commits mailing list