diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-08-18 00:40:33 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-08-18 00:40:33 +0000 |
commit | e55db741523b51f3f754b6dd62c5e0f52bb83b98 (patch) | |
tree | d8adf284f68ce9a035d8d34a2e8e188f0042d7d2 /tools | |
parent | e1b80b6946183a167b566f674235177338469a26 (diff) |
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.
Patch by Sandeep Patel!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79296 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Makefile | 2 | ||||
-rw-r--r-- | tools/lto/Makefile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/Makefile b/tools/Makefile index 4f0f54bdfb..a54aeaf376 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -39,7 +39,7 @@ ifeq ($(ENABLE_PIC),1) endif # No support for lto / gold on windows targets -ifeq ($(OS), $(filter $(OS), Cygwin MingW)) +ifeq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW)) DIRS := $(filter-out lto gold, $(DIRS)) endif diff --git a/tools/lto/Makefile b/tools/lto/Makefile index c8ad9fe08f..3120aa52c9 100644 --- a/tools/lto/Makefile +++ b/tools/lto/Makefile @@ -22,7 +22,7 @@ LINK_COMPONENTS := $(TARGETS_TO_BUILD) ipo scalaropts linker bitreader bitwriter include $(LEVEL)/Makefile.common -ifeq ($(OS),Darwin) +ifeq ($(HOST_OS),Darwin) # set dylib internal version number to llvmCore submission number ifdef LLVM_SUBMIT_VERSION LLVMLibsOptions := $(LLVMLibsOptions) -Wl,-current_version \ |