From: Remi Gacogne Date: Mon, 30 Oct 2023 08:26:18 +0000 (+0100) Subject: tasks: Apply another suggestion X-Git-Tag: rec-5.0.0-beta1~23^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=472404b918f4f89afd950edaed3c25b7383503b8;p=thirdparty%2Fpdns.git tasks: Apply another suggestion --- diff --git a/tasks.py b/tasks.py index c11ae783ad..c693296651 100644 --- a/tasks.py +++ b/tasks.py @@ -384,9 +384,8 @@ def get_cxx_compiler(): return f'clang++-{clang_version}' if compiler == 'clang' else 'g++' def get_optimizations(): - if os.getenv('OPTIMIZATIONS', 'yes') == 'yes': - return "-O1" - return "-O0" + optimizations = os.getenv('OPTIMIZATIONS', 'yes') + return '-O1' if optimizations == 'yes' else '-O0' def get_cflags(): return " ".join([