2
0
Эх сурвалжийг харах

add GL backends to tests/analyze_macos.sh

Andre Weissflog 3 жил өмнө
parent
commit
dbeee9454a

+ 2 - 0
tests/CMakeLists.txt

@@ -53,6 +53,8 @@ else()
         set(cxx_flags ${cxx_flags} -Wno-missing-field-initializers)
     endif()
     if (USE_ANALYZER)
+        # FIXME: consider using clang-tidy via CMAKE_CXX_CLANG_TIDY: https://ortogonal.github.io/cmake-clang-tidy/
+        # with the default settings this spams the output with irrelevant C++ coding style warnings in 3rd party libs though
         message(">> Configuring for static code analysis")
         set(c_flags ${c_flags} --analyze -Xanalyzer -analyzer-opt-analyze-headers)
         set(cxx_flags ${cxx_flags} --analyze -Xanalyzer -analyzer-opt-analyze-headers)

+ 6 - 1
tests/analyze_macos.sh

@@ -1,5 +1,10 @@
 set -e
 source test_common.sh
 prepare
+
 analyze macos_metal_analyze SOKOL_METAL Debug
-analyze_arc macos_arc_metal_analyze SOKOL_METAL Debug
+analyze macos_gl_analyze SOKOL_METAL Debug
+
+analyze_arc macos_arc_metal_analyze SOKOL_GLCORE33 Debug
+analyze_arc macos_arc_gl_analyze SOKOL_GLCORE33 Debug
+