Skip to content

Commit

Permalink
Allow easy build without coverage & debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
FGasper committed Mar 23, 2022
1 parent e428eeb commit 3fc04a0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ LLQUEUE_DIR = $(CONTRIB_DIR)/CLinkedListQueue
VPATH = src

GCOV_OUTPUT = *.gcda *.gcno *.gcov

ifdef RAFT_PRODUCTION
GCOV_CCFLAGS =
else
GCOV_CCFLAGS = -fprofile-arcs -ftest-coverage
endif

SHELL = /bin/bash
CFLAGS += -Iinclude -Werror -Werror=return-type -Werror=uninitialized -Wcast-align \
-Wno-pointer-sign -fno-omit-frame-pointer -fno-common -fsigned-char \
Expand All @@ -14,7 +20,13 @@ CFLAGS += -Iinclude -Werror -Werror=return-type -Werror=uninitialized -Wcast-ali
UNAME := $(shell uname)

ifeq ($(UNAME), Darwin)

ifdef RAFT_PRODUCTION
ASANFLAGS =
else
ASANFLAGS = -fsanitize=address
endif

SHAREDFLAGS = -dynamiclib
SHAREDEXT = dylib
# We need to include the El Capitan specific /usr/includes, aargh
Expand Down
9 changes: 9 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,20 @@ There are no dependencies, however https://github.com/willemt/linked-List-queue
Building
========

For debugging/development:

.. code-block:: bash
:class: ignore
make tests
For production (to omit coverage & debugging tools):

.. code-block:: bash
:class: ignore
RAFT_PRODUCTION=1 make
Quality Assurance
=================

Expand Down

0 comments on commit 3fc04a0

Please sign in to comment.