meson compile -C build-gcc-release
' | $TARGET
+ - name: Build with gcc - static analyzer
+ run: |
+ echo '
+ cd "$GITHUB_WORKSPACE"
+ export CC=gcc
+ meson setup build-gcc-static_analyzer -Dxwayland=enabled \
+ -Dstatic_analyzer=enabled --werror
+ meson compile -C build-gcc-static_analyzer
+ ' | $TARGET
+
+
# Runtime tests, these run on Debian and Void only (the later due to libmusl being used)
- name: Build with clang - release
run: |
endif
conf_data.set10('HAVE_RSVG', have_rsvg)
+if get_option('static_analyzer').enabled()
+ add_project_arguments(['-fanalyzer'], language: 'c')
+endif
+
msgfmt = find_program('msgfmt', required: get_option('nls'))
if msgfmt.found()
source_root = meson.current_source_dir()
option('xwayland', type: 'feature', value: 'auto', description: 'Enable support for X11 applications')
option('svg', type: 'feature', value: 'enabled', description: 'Enable svg window buttons')
option('nls', type: 'feature', value: 'auto', description: 'Enable native language support')
+option('static_analyzer', type: 'feature', value: 'disabled', description: 'Run gcc static analyzer')