]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
tasks: Apply another suggestion
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 30 Oct 2023 08:26:18 +0000 (09:26 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 30 Oct 2023 08:26:33 +0000 (09:26 +0100)
tasks.py

index c11ae783ad2111b164e14541d83904d05d28286a..c693296651bc9a33af18bb52e1d68c2e77908bf3 100644 (file)
--- 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([