diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-05 16:12:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-05 16:12:45 +0200 |
commit | a61ad365f526e7acdbc556abc5678cd225e120d7 (patch) | |
tree | 676bce820159900632ec4d239f60c6edd9230e9b /methods.py | |
parent | 696be497284e95e4ba70c88ff52bc6255af81bb8 (diff) | |
parent | fc370b3feb419fdc1a8139bdf01f1dacf868ca1f (diff) |
Merge pull request #27677 from akien-mga/Wimplicit-fallthrough
Fix -Wimplicit-fallthrough warnings from GCC 8
Diffstat (limited to 'methods.py')
-rw-r--r-- | methods.py | 5 |
1 files changed, 4 insertions, 1 deletions
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"]) |