This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch dev/dimmus/test
in repository efl.

View the commit online.

commit a18a42ba3c33767a2e68649ad42c421ca72cd18b
Author: dimmus <dmitri.chudi...@gmail.com>
AuthorDate: Mon Oct 21 14:44:20 2024 +0500

    meson: flags file cleanup
---
 meson/flags/meson.build | 51 ++++++++-----------------------------------------
 1 file changed, 8 insertions(+), 43 deletions(-)

diff --git a/meson/flags/meson.build b/meson/flags/meson.build
index 4e8776fd5c..009ebb380f 100644
--- a/meson/flags/meson.build
+++ b/meson/flags/meson.build
@@ -1,8 +1,8 @@
-COMPILER_IS_GNUCC = cc.get_id() == 'gcc'
-COMPILER_IS_CLANG = cc.get_id() == 'clang' # Matches both "Clang" & "AppleClang" on macOS.
-COMPILER_IS_CLANG_CL = cc.get_id() == 'clang-cl' # MSVC_CLANG
-COMPILER_IS_MSVC = cc.get_id() == 'msvc'
-COMPILER_IS_INTEL = cc.get_id() == 'intel'
+COMPILER_IS_GNUCC     = cc.get_id() == 'gcc'
+COMPILER_IS_CLANG     = cc.get_id() == 'clang' # Matches both "Clang" & "AppleClang" on macOS.
+COMPILER_IS_CLANG_CL  = cc.get_id() == 'clang-cl' # MSVC_CLANG
+COMPILER_IS_MSVC      = cc.get_id() == 'msvc'
+COMPILER_IS_INTEL     = cc.get_id() == 'intel'
 
 c_compiler_flags = []
 cxx_compiler_flags = []
@@ -17,7 +17,6 @@ if COMPILER_IS_GNUCC
     '-Werror=init-self',
     '-Werror=missing-include-dirs',
     '-Werror=unused-result',
-
     '-Wundef',
     '-Waddress',
     '-Wswitch',
@@ -124,16 +123,11 @@ if COMPILER_IS_GNUCC
   ]
 
   if not APPLE
-    # CXX_WARNINGS
     cxx_compiler_flags += [
       '-Wmissing-declarations',
     ]
   endif
 
-  # ---------------------
-  # Suppress Strict Flags
-  #
-  # flags to undo strict flags
   # C_REMOVE_STRICT_FLAGS
   c_compiler_flags += [
     '-Wno-old-style-definition',        # many, cannot applied for handler functions
@@ -195,7 +189,6 @@ if COMPILER_IS_CLANG
     '-Werror=implicit-function-declaration',
     '-Werror=unguarded-availability-new',
     '-Werror=return-type',
-
     '-Wstrict-prototypes',
     '-Wunused-parameter',
     '-Wunused-command-line-argument',
@@ -203,11 +196,11 @@ if COMPILER_IS_CLANG
     '-Wundef-prefix',
     '-Wstring-plus-int',
   ]
+  
   # CXX_WARNINGS
   cxx_compiler_flags += [
     # Using C++20 features while having C++17 as the project language isn't allowed by MSVC.
     '-Wc++20-designator',
-
     '-Wno-tautological-compare',
     '-Wno-unknown-pragmas',
     '-Wno-char-subscripts',
@@ -215,20 +208,15 @@ if COMPILER_IS_CLANG
     '-Wno-overloaded-virtual',
     '-Wno-sign-compare',
     '-Wno-invalid-offsetof',
-
     # Apple Clang (tested on version 12) doesn't support this flag while LLVM Clang 11 does.
     '-Wno-suggest-override',
-
     '-Wundef',
     '-Wundef-prefix',
     '-Wunused-parameter',
-
     # Prevents linking errors with MSVC.
     '-Wmismatched-tags',
-
     # Gives too many unfixable warnings.
     # '-Wunused-macros',
-
     '-Werror=unguarded-availability-new',
   ]
 
@@ -519,10 +507,6 @@ if COMPILER_IS_CLANG
     ]
   endif
 
-  # ---------------------
-  # Suppress Strict Flags
-
-  # flags to undo strict flags
   # C_REMOVE_STRICT_FLAGS
   c_compiler_flags += [
     '-Wno-unused-parameter',
@@ -547,6 +531,7 @@ if COMPILER_IS_CLANG
     '-Wno-unknown-pragmas',
     '-Wno-char-subscripts',
   ]
+  
   # CXX_REMOVE_STRICT_FLAGS
   cxx_compiler_flags += [
     '-Wno-unused-parameter',
@@ -575,6 +560,7 @@ if COMPILER_IS_INTEL
     '-Wpointer-arith',
     '-Wno-unknown-pragmas',
   ]
+  
   # CXX_WARNINGS
   cxx_compiler_flags += [
     # '-Wall' # set by warning_level=2
@@ -622,20 +608,8 @@ if COMPILER_IS_MSVC
   cxx_compiler_flags = c_compiler_flags
 endif
 
-# Visual Studio has all standards it supports available by default
-# Clang on windows copies this behavior and does not support these switches
-if COMPILER_IS_GNUCC or COMPILER_IS_INTEL or (COMPILER_IS_CLANG and not COMPILER_IS_MSVC)
-  # Use C11 + GNU extensions, works with GCC, Clang, ICC
-  # string(APPEND CMAKE_C_FLAGS " -std=gnu11")
-endif
-
 subdir('platform')
 
-# Include warnings first, so its possible to disable them with user defined flags
-# eg: -Wno-uninitialized
-# CMAKE_C_FLAGS = C_WARNINGS + CMAKE_C_FLAGS + PLATFORM_CFLAGS
-# CMAKE_CXX_FLAGS = CXX_WARNINGS + CMAKE_CXX_FLAGS + PLATFORM_CFLAGS
-
 user_c_flags = cc.get_supported_arguments(c_compiler_flags + platform_c_flags)
 user_cxx_flags = cxx.get_supported_arguments(cxx_compiler_flags + platform_c_flags)
 
@@ -688,14 +662,5 @@ endif
 
 summary_env += {'LTO':               get_option('b_lto')}
 summary_env += {'PIE':               get_option('b_pie')}
-# summary_env += {'debug graph lock':  get_option('debug_graph_lock')}
-# summary_env += {'debug stack usage': get_option('debug_stack_usage')}
-# summary_env += {'mutex debugging':   get_option('debug_mutex')}
-# summary_env += {'avx2 optimization': config_host_data.get('CONFIG_AVX2_OPT')}
-# summary_env += {'avx512bw optimization': config_host_data.get('CONFIG_AVX512BW_OPT')}
-# summary_env += {'avx512f optimization': config_host_data.get('CONFIG_AVX512F_OPT')}
 summary_env += {'GCov':              get_option('b_coverage')}
 summary_env += {'Debugging': get_option('debug')}
-
-# summary_mem += {'Memory allocator':  get_option('malloc')}
-# summary_mem += {'Malloc trim support': has_malloc_trim}
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to