Replaced the hard-coded compiler variable with the one defined by
Makefile.config.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6680
91177308-0d34-0410-b5e6-
96231b3b80d8
.PRECIOUS: Output/%.llvm
ifdef ENABLE_OPTIMIZED
-TOOLS = $(BUILD_ROOT_TOP)/tools/Release
+TOOLS = $(BUILD_OBJ_ROOT)/tools/Release
else
-TOOLS = $(BUILD_ROOT_TOP)/tools/Debug
+TOOLS = $(BUILD_OBJ_ROOT)/tools/Debug
endif
# LLVM Tool Definitions...
TESTRUNR = $(LEVEL)/test/TestRunner.sh
# Native Tool Definitions
-NATGCC = /usr/dcs/software/supported/bin/gcc
+NATGCC = $(CC)
CP = /bin/cp -f
## If TRACE or TRACEM is "yes", set the appropriate llc flag (-trace or -tracem)