Skip to content

Commit

Permalink
Hook core-native into test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
jeaye committed Nov 25, 2024
1 parent eb24cd6 commit 75cfa40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler+runtime/test/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <llvm/Support/TargetSelect.h>

#include <jank/runtime/context.hpp>
#include <clojure/core_native.hpp>

/* NOLINTNEXTLINE(bugprone-exception-escape): println can throw. */
int main(int const argc, char const **argv)
Expand All @@ -31,6 +32,7 @@ try
context.setOption("no-breaks", true);

jank::runtime::__rt_ctx = new(GC) jank::runtime::context{};
jank_load_clojure_core_native();
jank::runtime::__rt_ctx->load_module("/clojure.core").expect_ok();

auto const res(context.run());
Expand Down

0 comments on commit 75cfa40

Please sign in to comment.