Skip to content

Commit

Permalink
test(test_compiler): use proper library path when compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
JaDogg committed Apr 14, 2024
1 parent e205a89 commit 7bfde96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/tests/test_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@
#include <string>
using namespace yaksha;
static void test_compile_yaka_file(const std::string &yaka_code_file) {
std::string exe_path = get_my_exe_path();
auto libs_path = std::filesystem::path(exe_path).parent_path().parent_path() / "libs";
multifile_compiler mc{};
codegen_c cg{};
auto result = mc.compile(yaka_code_file, &cg);
auto result = mc.compile(yaka_code_file, libs_path.string(), &cg);
REQUIRE(result.failed_ == false);
gc_pool<token> token_pool{};
// --------------------------------------------
Expand Down

0 comments on commit 7bfde96

Please sign in to comment.