Fix Makefile for Windows to Android tests.

Reviewers: zturner

Subscribers: tberghammer, lldb-commits, danalbert

Differential Revision: http://reviews.llvm.org/D12909

llvm-svn: 247857
This commit is contained in:
Chaoren Lin 2015-09-16 21:51:51 +00:00
parent 4dbff20c91
commit d761a9532b
1 changed files with 6 additions and 5 deletions

View File

@ -73,11 +73,12 @@ endif
# tests from Visual Studio, the environment variable isn't inherited
# all the way down to the process spawned for make.
#----------------------------------------------------------------------
ifeq "$(OS)" ""
OS = $(shell uname -s)
HOST_OS = $(shell uname -s)
ifeq "$(HOST_OS)" "windows32"
HOST_OS = Windows_NT
endif
ifeq "$(OS)" "windows32"
OS = Windows_NT
ifeq "$(OS)" ""
OS = $(HOST_OS)
endif
#----------------------------------------------------------------------
@ -485,7 +486,7 @@ endif
# the compiler -MM option. The -M option will list all system headers,
# and the -MM option will list all non-system dependencies.
#----------------------------------------------------------------------
ifeq "$(OS)" "Windows_NT"
ifeq "$(HOST_OS)" "Windows_NT"
JOIN_CMD = &
QUOTE = "
else