summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.rules4
-rw-r--r--tools/llvm-ar/Makefile2
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 1f21e5d848..c130368b75 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -881,9 +881,9 @@ ifdef TOOLNAME
# Set up variables for building a tool.
#---------------------------------------------------------
ifdef EXAMPLE_TOOL
-ToolBuildPath := $(ExmplDir)/$(TOOLNAME)$(EXEEXT)
+ToolBuildPath := $(ExmplDir)/$(strip $(TOOLNAME))$(EXEEXT)
else
-ToolBuildPath := $(ToolDir)/$(TOOLNAME)$(EXEEXT)
+ToolBuildPath := $(ToolDir)/$(strip $(TOOLNAME))$(EXEEXT)
endif
#---------------------------------------------------------
diff --git a/tools/llvm-ar/Makefile b/tools/llvm-ar/Makefile
index 5d0694e1ce..3375f9ee36 100644
--- a/tools/llvm-ar/Makefile
+++ b/tools/llvm-ar/Makefile
@@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
-TOOLNAME = llvm-ar
+TOOLNAME = llvm-ar
USEDLIBS = LLVMArchive.a LLVMBCReader \
LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a