From 088a2bb94cfb6792c3c34b8f5beead6dcdb5292d Mon Sep 17 00:00:00 2001 From: Saket Patel Date: Mon, 20 Jan 2025 19:37:09 +0530 Subject: [PATCH] fix: clojure.core loads twice --- compiler+runtime/src/cpp/main.cpp | 1 + compiler+runtime/src/jank/clojure/core.jank | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler+runtime/src/cpp/main.cpp b/compiler+runtime/src/cpp/main.cpp index 9151462fd..d56965d54 100644 --- a/compiler+runtime/src/cpp/main.cpp +++ b/compiler+runtime/src/cpp/main.cpp @@ -119,6 +119,7 @@ namespace jank throw std::runtime_error{ "Not yet implemented: REPL server" }; } + if(opts.target_module != "clojure.core") { profile::timer const timer{ "require clojure.core" }; __rt_ctx->load_module("/clojure.core", module::origin::latest).expect_ok(); diff --git a/compiler+runtime/src/jank/clojure/core.jank b/compiler+runtime/src/jank/clojure/core.jank index 465d0ec88..188f4d542 100644 --- a/compiler+runtime/src/jank/clojure/core.jank +++ b/compiler+runtime/src/jank/clojure/core.jank @@ -7412,5 +7412,3 @@ fails, attempts to require sym's namespace and retries." [#_double num] ;; (Double/isInfinite num) (throw "TODO: port")) - -(println "Bottom of clojure.core") \ No newline at end of file