From e4a96164b6e52dac6aff7ddad05bd3ed735840a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 5 Apr 2019 12:51:15 +0200 Subject: SCons: add `methods.using_clang` to check used compiler Also rename `use_gcc` to `using_gcc` to make it clear that it returns a config but does not alter it. --- methods.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'methods.py') diff --git a/methods.py b/methods.py index 7465962187..5bc30dc643 100644 --- a/methods.py +++ b/methods.py @@ -668,5 +668,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"]) -- cgit v1.2.3