Author: adrian Date: Thu Oct 10 10:59:18 2019 New Revision: 374402 URL: http://llvm.org/viewvc/llvm-project?rev=374402&view=rev Log: Remove CC autodetection from Makefile.rules
Auto-detecting CC in Makefile.rules is no longer useful. Ever since out-of-tree builds we are better off just running lldb-dotest which sets it directly. This also makes it harder to accidentally unset CC in a Makefile. Differential Revision: https://reviews.llvm.org/D68731 Modified: lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules Modified: lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules?rev=374402&r1=374401&r2=374402&view=diff ============================================================================== --- lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules (original) +++ lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules Thu Oct 10 10:59:18 2019 @@ -171,15 +171,8 @@ endif # o cxx_compiler # o cxx_linker #---------------------------------------------------------------------- -CC ?= clang -ifeq "$(CC)" "cc" - ifneq "$(shell which clang)" "" - CC = clang - else ifneq "$(shell which clang-3.5)" "" - CC = clang-3.5 - else ifneq "$(shell which gcc)" "" - CC = gcc - endif +ifeq "$(CC)" "" +$(error "C compiler is not specified. Please run tests through lldb-dotest or lit") endif #---------------------------------------------------------------------- _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits