Skip to content

Commit

Permalink
Enable tracing to see why CI is crashing.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjp41 committed Mar 24, 2022
1 parent 1fc42a1 commit 80bc701
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ endif()

target_compile_definitions(snmalloc INTERFACE $<$<BOOL:CONST_QUALIFIED_MALLOC_USABLE_SIZE>:MALLOC_USABLE_SIZE_QUALIFIER=const>)

target_compile_definitions(snmalloc INTERFACE SNMALLOC_TRACING)

# In debug and CI builds, link the backtrace library so that we can get stack
# traces on errors.
find_package(Backtrace)
Expand Down
1 change: 0 additions & 1 deletion src/test/func/redblack/redblack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <iostream>
#include <vector>

#define SNMALLOC_TRACING
// Redblack tree needs some libraries with trace enabled.
#include "ds/redblacktree.h"
#include "snmalloc.h"
Expand Down
2 changes: 1 addition & 1 deletion src/test/func/two_alloc_types/alloc1.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define SNMALLOC_TRACING
//#define SNMALLOC_TRACING

// Redefine the namespace, so we can have two versions.
#define snmalloc snmalloc_enclave
Expand Down
2 changes: 1 addition & 1 deletion src/test/func/two_alloc_types/alloc2.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define SNMALLOC_TRACING
//#define SNMALLOC_TRACING

#define SNMALLOC_NAME_MANGLE(a) host_##a
// Redefine the namespace, so we can have two versions.
Expand Down

0 comments on commit 80bc701

Please sign in to comment.