ci : use sanitizer builds only in Debug mode

ggml-ci
This commit is contained in:
Georgi Gerganov 2025-01-18 12:12:53 +02:00
parent 9945478438
commit d076b6acd0
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
2 changed files with 1 additions and 10 deletions

View file

@ -234,7 +234,7 @@ jobs:
strategy: strategy:
matrix: matrix:
sanitizer: [ADDRESS, THREAD, UNDEFINED] sanitizer: [ADDRESS, THREAD, UNDEFINED]
build_type: [Debug, Release] build_type: [Debug]
steps: steps:
- name: Clone - name: Clone

View file

@ -12,16 +12,7 @@
#include <cstdint> #include <cstdint>
#include <locale> #include <locale>
#include <map> #include <map>
// silence warnings triggered by a gcc bug when using sanitizers
// ref: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105562#c21
#pragma GCC diagnostic push
#if defined __SANITIZE_ADDRESS__ && defined __OPTIMIZE__
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#include <regex> #include <regex>
#pragma GCC diagnostic pop
#include <stdexcept> #include <stdexcept>
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>