summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index 192a41df5aa..4d62e1c50c9 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -87,6 +87,8 @@ def getCppCompiler():
compiler = ""
if os.environ.get("CPP_COMPILER", "") != "":
compiler = os.environ["CPP_COMPILER"]
+ elif isMINGW():
+ compiler = "MINGW"
else:
config = open(os.path.join(toplevel, "cpp", "config", "Make.rules.mak"), "r")
compiler = re.search("CPP_COMPILER[\t\s]*= ([A-Z0-9]*)", config.read()).group(1)