Skip to content

Commit

Permalink
added CATCH2 fast compile and fixed #def to prefix with HERMES_
Browse files Browse the repository at this point in the history
  • Loading branch information
hariharan-devarajan committed Jan 14, 2021
1 parent 0963cd8 commit 8d7212b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ endif()

if(NOT CMAKE_CXX_FLAGS)
#TODO: add -Werror
set (CMAKE_CXX_FLAGS "-Wall -Wextra ${CMAKE_CXX_FLAGS}")
set (CMAKE_CXX_FLAGS "-Wall -Wextra ${CMAKE_CXX_FLAGS} -DCATCH_CONFIG_FAST_COMPILE")
message (STATUS "Warnings Configuration: default: ${CMAKE_CXX_FLAGS}")
endif()

Expand Down
2 changes: 1 addition & 1 deletion src/api/traits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Trait::Trait(TraitID id, TraitIdArray conflict_traits, TraitType type)
FileMappingTrait::FileMappingTrait(
std::string &filename, std::unordered_map<std::string, u64> &offset_map,
TraitCallback flush_cb, TraitCallback load_cb)
: Trait(FILE_TRAIT, TraitIdArray(), TraitType::FILE_MAPPING),
: Trait(HERMES_FILE_TRAIT, TraitIdArray(), TraitType::FILE_MAPPING),
flush_cb(flush_cb),
load_cb(load_cb),
filename(filename),
Expand Down
2 changes: 1 addition & 1 deletion src/api/traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct Trait {
Trait(TraitID id, TraitIdArray conflict_traits, TraitType type);
};

#define FILE_TRAIT 10
#define HERMES_FILE_TRAIT 10

struct FileMappingTrait : public Trait {
public:
Expand Down

0 comments on commit 8d7212b

Please sign in to comment.