Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroAir committed Jun 11, 2024
1 parent 5a84a64 commit f0f0b07
Show file tree
Hide file tree
Showing 7 changed files with 319 additions and 91 deletions.
2 changes: 1 addition & 1 deletion cmake_modules/compiler_options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ endif()

# Enable Address Sanitizer (ASan) for Debug builds
if(CMAKE_BUILD_TYPE MATCHES "Debug")
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" AND NOT MINGW)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fno-omit-frame-pointer")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=address")
endif()
Expand Down
2 changes: 1 addition & 1 deletion libs
6 changes: 3 additions & 3 deletions src/atom/function/refl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ struct ElemList {
constexpr const auto& Get() const {
return std::get<N>(elems);
}
#define USRefl_ElemList_GetByValue(list, value) \
#define ATOM_META_ElemList_GetByValue(list, value) \
list.Get<list.FindValue(value)>()
};

Expand Down Expand Up @@ -370,14 +370,14 @@ Field(Name, T) -> Field<Name, T, AttrList<>>;

} // namespace atom::meta

#define USREFL_TYPEINFO(Type, ...) \
#define ATOM_META_TYPEINFO(Type, ...) \
namespace atom::meta { \
template <> \
struct TypeInfo<Type> : TypeInfoBase<Type> { \
static constexpr auto fields = FieldList(__VA_ARGS__); \
}; \
}

#define USREFL_FIELD(Name, Member) USRefl::Field(TSTR(Name), Member)
#define ATOM_META_FIELD(Name, Member) atom::meta::Field(TSTR(Name), Member)

#endif
2 changes: 1 addition & 1 deletion src/atom/io/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ set(${PROJECT_NAME}_PRIVATE_HEADERS
add_library(${PROJECT_NAME}_OBJECT OBJECT)
set_property(TARGET ${PROJECT_NAME}_OBJECT PROPERTY POSITION_INDEPENDENT_CODE 1)

target_link_libraries(${PROJECT_NAME}_OBJECT loguru libzippp)
target_link_libraries(${PROJECT_NAME}_OBJECT loguru)

target_sources(${PROJECT_NAME}_OBJECT
PUBLIC
Expand Down
Loading

0 comments on commit f0f0b07

Please sign in to comment.