summaryrefslogtreecommitdiff
path: root/methods.py
diff options
context:
space:
mode:
Diffstat (limited to 'methods.py')
-rw-r--r--methods.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/methods.py b/methods.py
index 7465962187..ec9ecdb17f 100644
--- a/methods.py
+++ b/methods.py
@@ -4,7 +4,6 @@ import sys
import re
import glob
import string
-import datetime
import subprocess
from compat import iteritems, isbasestring, decode_utf8
@@ -668,5 +667,8 @@ def get_compiler_version(env):
else:
return None
-def use_gcc(env):
+def using_gcc(env):
return 'gcc' in os.path.basename(env["CC"])
+
+def using_clang(env):
+ return 'clang' in os.path.basename(env["CC"])