Skip to content

Commit 6cd7197

Browse files
committed
add include path of core_symbol.hpp for abi_tests
1 parent 0ec841b commit 6cd7197

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

unittests/abi_tests.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ struct abi_gen_helper {
529529
bool generate_abi(const char* source, const char* abi, bool opt_sfs=false) {
530530

531531
std::string include_param = std::string("-I") + eosiolib_path;
532+
std::string core_sym_include_param = std::string("-I") + core_symbol_path;
532533
std::string pfr_include_param = std::string("-I") + pfr_include_path;
533534
std::string boost_include_param = std::string("-I") + boost_include_path;
534535
std::string stdcpp_include_param = std::string("-I") + eosiolib_path + "/libc++/upstream/include";
@@ -542,7 +543,7 @@ struct abi_gen_helper {
542543
auto extra_args = std::vector<std::string>{"-fparse-all-comments", "--std=c++14", "--target=wasm32", "-ffreestanding", "-nostdlib",
543544
"-nostdlibinc", "-fno-threadsafe-statics", "-fno-rtti", "-fno-exceptions",
544545
include_param, boost_include_param, stdcpp_include_param,
545-
stdc_include_param, pfr_include_param };
546+
stdc_include_param, pfr_include_param, core_sym_include_param };
546547

547548
bool res = runToolOnCodeWithArgs(
548549
new find_eosio_abi_macro_action(contract, actions, ""),

unittests/include/config.hpp.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace eosio { namespace unittests { namespace config {
77
constexpr char eosiolib_path[] = "${CMAKE_CURRENT_SOURCE_DIR}/../contracts";
8+
constexpr char core_symbol_path[] = "${CMAKE_BINARY_DIR}/contracts";
89
constexpr char pfr_include_path[] = "${CMAKE_CURRENT_SOURCE_DIR}/../externals/magic_get/include";
910
constexpr char boost_include_path[] = "${Boost_INCLUDE_DIR}";
1011
}}}

0 commit comments

Comments
 (0)