Skip to content

Commit

Permalink
Added additional debug flags and comments.
Browse files Browse the repository at this point in the history
Also include iostream by default to enable standard C++ way of printing.
  • Loading branch information
carljohnsen committed Sep 4, 2024
1 parent 62c4576 commit 2154451
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ PYBIND_SUFFIX = $(shell $(PYTHON)-config --extension-suffix)

CPP_FOLDER=lib/cpp
#CXXFLAGS += -I../contrib/cpptqdm/ -Iinclude
CXXFLAGS += -I$(CPP_FOLDER)/include -march=native -Wall -Wextra -Wfloat-equal -Wundef -Wshadow -Wuninitialized -Winit-self -shared -fPIC -g -std=c++20 -O3
CXXFLAGS += -I$(CPP_FOLDER)/include -Wall -Wextra -Wfloat-equal -Wundef -Wshadow -Wuninitialized -Winit-self -shared -fPIC -g -std=c++20 -O3
# To use valgrind, this should be commented out:
#CXXFLAGS += -march=native
# To enable address sanitizer:
#CXXFLAGS += -fsanitize=address
#CXXFLAGS += -fsanitize=address -static-libasan -lasan
PLATFORMS=cpu_seq cpu
cpu_seq_CXX=$(CXX)
cpu_seq_FLAGS=-Wno-unknown-pragmas -Wno-comment -Wconversion #-Weffc++
Expand Down
1 change: 1 addition & 0 deletions src/lib/cpp/include/datatypes.hh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#endif

#include <array>
#include <iostream>
#include <vector>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
Expand Down

0 comments on commit 2154451

Please sign in to comment.