summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/test/make/Makefile.rules5
-rw-r--r--lldb/test/plugins/builder_base.py2
2 files changed, 6 insertions, 1 deletions
diff --git a/lldb/test/make/Makefile.rules b/lldb/test/make/Makefile.rules
index 7e9829c885e..b733fcc104a 100644
--- a/lldb/test/make/Makefile.rules
+++ b/lldb/test/make/Makefile.rules
@@ -24,6 +24,11 @@ endif
#----------------------------------------------------------------------
# CC defaults to clang.
+#
+# If you change the defaults of CC, be sure to also change it in the file
+# test/plugins/builder_base.py, which provides a Python way to return the
+# value of the make variable CC -- getCompiler().
+#
# See also these functions:
# o cxx_compiler
# o cxx_linker
diff --git a/lldb/test/plugins/builder_base.py b/lldb/test/plugins/builder_base.py
index 1a4cf0e469d..19d5dc4f868 100644
--- a/lldb/test/plugins/builder_base.py
+++ b/lldb/test/plugins/builder_base.py
@@ -21,7 +21,7 @@ def getArchitecture():
def getCompiler():
"""Returns the compiler in effect the test suite is running with."""
- return os.environ["CC"] if "CC" in os.environ else ""
+ return os.environ["CC"] if "CC" in os.environ else "clang"
def getArchSpec(architecture):
"""
OpenPOWER on IntegriCloud