summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-08-18 00:40:33 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-08-18 00:40:33 +0000
commit90e17e787fa175a4f1d6d0bcde00af027f2ade72 (patch)
tree5fb06fb0690eee26762269cdd3de6d2badc11c65 /llvm/utils
parent2e9e3c3316706e45e7ef4c3470596b6edda3a5b0 (diff)
downloadbcm5719-llvm-90e17e787fa175a4f1d6d0bcde00af027f2ade72.tar.gz
bcm5719-llvm-90e17e787fa175a4f1d6d0bcde00af027f2ade72.zip
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! llvm-svn: 79296
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/unittest/googletest/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/unittest/googletest/Makefile b/llvm/utils/unittest/googletest/Makefile
index 8366055944c..2e0bf72a62a 100644
--- a/llvm/utils/unittest/googletest/Makefile
+++ b/llvm/utils/unittest/googletest/Makefile
@@ -18,7 +18,7 @@ BUILD_ARCHIVE = 1
CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include
CPP.Flags += $(NO_MISSING_FIELD_INITIALIZERS) $(NO_VARIADIC_MACROS)
-ifeq ($(OS),MingW)
+ifeq ($(HOST_OS),MingW)
CPP.Flags += -DGTEST_OS_WINDOWS=1
endif
OpenPOWER on IntegriCloud