From: Remi Gacogne Date: Mon, 30 Oct 2023 08:12:57 +0000 (+0100) Subject: tasks: Apply Fred's suggestion (thanks!) X-Git-Tag: rec-5.0.0-beta1~23^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6034e814412b582df4d0e85cf26091b375aa4b7;p=thirdparty%2Fpdns.git tasks: Apply Fred's suggestion (thanks!) Co-authored-by: Fred Morcos --- diff --git a/tasks.py b/tasks.py index 00e7dd160a..72192b44fc 100644 --- a/tasks.py +++ b/tasks.py @@ -376,9 +376,8 @@ def get_sanitizers(): return sanitizers def get_c_compiler(): - if os.getenv('COMPILER', 'clang') == 'clang': - return f'clang-{clang_version}' - return 'gcc' + compiler = os.getenv('COMPILER', 'clang') + return f'clang-{clang_version}' if compiler == 'clang' else 'gcc' def get_cxx_compiler(): if os.getenv('COMPILER', 'clang') == 'clang':