Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow easy build without coverage & debugging. #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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