From a5fcad155bc036587d6dd5f32d90e6934da95493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= Date: Thu, 20 Feb 2025 09:19:01 +0100 Subject: [PATCH] Fix valgrind and add it to gh ci --- .github/workflows/main.yaml | 2 +- erts/emulator/Makefile.in | 2 +- lib/public_key/c_src/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index ffd7355b13a2..d827d8316faa 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -391,7 +391,7 @@ jobs: BASE_BRANCH: ${{ env.BASE_BRANCH }} - name: Build Erlang/OTP flavors and types run: | - TYPES="opt debug lcnt" + TYPES="opt debug lcnt asan gcov valgrind" FLAVORS="emu jit" for TYPE in ${TYPES}; do for FLAVOR in ${FLAVORS}; do diff --git a/erts/emulator/Makefile.in b/erts/emulator/Makefile.in index 0eaadfd18736..18709e745b61 100644 --- a/erts/emulator/Makefile.in +++ b/erts/emulator/Makefile.in @@ -147,7 +147,7 @@ else ifeq ($(TYPE),valgrind) TYPEMARKER = .valgrind -TYPE_FLAGS = @DEBUG_CFLAGS@ -DVALGRIND -DNO_JUMP_TABLE +TYPE_FLAGS = @DEBUG_CFLAGS@ -DVALGRIND -DNO_JUMP_TABLE -Wno-maybe-uninitialized TYPE_CXXFLAGS = @DEBUG_CXXFLAGS@ ENABLE_ALLOC_TYPE_VARS += valgrind else diff --git a/lib/public_key/c_src/Makefile b/lib/public_key/c_src/Makefile index 064868af42cd..51d75f501526 100644 --- a/lib/public_key/c_src/Makefile +++ b/lib/public_key/c_src/Makefile @@ -91,7 +91,7 @@ endif _create_dirs := $(shell mkdir -p $(OBJDIR) $(LIBDIR)) -debug opt valgrind lcnt asan: $(DIRS) $(PUBKEY_LIB) +debug opt valgrind lcnt asan gcov: $(DIRS) $(PUBKEY_LIB) $(OBJDIR): -@mkdir -p $(OBJDIR)