[llvm-commits] cross building fixes

Eli Friedman eli.friedman at gmail.com
Wed Aug 5 12:38:38 PDT 2009


On Wed, Aug 5, 2009 at 2:59 AM, Sandeep Patel<deeppatel1987 at gmail.com> wrote:
> 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.

The naming you're using is kind of confusing... from "configure
--help" for LLVM:
System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  --target=TARGET   configure for building compilers for TARGET [HOST]

-Eli



More information about the llvm-commits mailing list