Skip to content

Commit

Permalink
fix ubuntu 18 build
Browse files Browse the repository at this point in the history
  • Loading branch information
dimas1185 committed Jan 25, 2023
1 parent 90506ff commit 204b16e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions libraries/eosiolib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ if (${PARENT_PROJECT_NAME} STREQUAL "cdt_tools")
${CMAKE_SOURCE_DIR}/../libraries/boost/include
${CMAKE_SOURCE_DIR}/../libraries/meta_refl/include)
target_compile_options(${PROJECT_NAME} PUBLIC -fPIC -fexceptions -fno-rtti)
if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU"))
target_compile_options(${PROJECT_NAME} PUBLIC -Wno-attributes=gnu::eosio_wasm_import)
target_compile_options(${PROJECT_NAME} PUBLIC -Wno-attributes=eosio::ignore)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "12.0")
target_compile_options(${PROJECT_NAME} PUBLIC -Wno-attributes)
else()
target_compile_options(${PROJECT_NAME} PUBLIC -Wno-attributes=gnu::eosio_wasm_import)
target_compile_options(${PROJECT_NAME} PUBLIC -Wno-attributes=eosio::ignore)
endif()
endif()
else()
add_library(eosio
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#define BLUEGRASS_HAS_TEMPLATE_MEMBER(ARG, NAME) \
bluegrass::meta::overloaded { \
[&](auto&& f, std::enable_if_t<std::is_class_v<std::decay_t<decltype(f)>> && \
[](auto&& f, std::enable_if_t<std::is_class_v<std::decay_t<decltype(f)>> && \
bluegrass::meta::detail::pass_type< \
decltype(&std::decay_t<decltype(f)>::type::template NAME)>(), int> = 0) constexpr { \
return true; \
Expand Down

0 comments on commit 204b16e

Please sign in to comment.