From 374ccf07246484eb7beb2cd87f3fc88396373ee1 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Fri, 20 Aug 2021 03:12:49 -0400 Subject: More fixes. --- lux-lein/src/leiningen/lux/utils.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lux-lein') diff --git a/lux-lein/src/leiningen/lux/utils.clj b/lux-lein/src/leiningen/lux/utils.clj index debd9832d..c18ea5a51 100644 --- a/lux-lein/src/leiningen/lux/utils.clj +++ b/lux-lein/src/leiningen/lux/utils.clj @@ -95,7 +95,8 @@ (project-id project)) raw-paths (project-jars project) stdlib-path (when (not is-stdlib?) - (prepare-path (find-stdlib-path raw-paths))) + (when-let [stdlib-path (find-stdlib-path raw-paths)] + (prepare-path stdlib-path))) sdk-path (get-in project [:lux :android :sdk]) android-path (str sdk-path java.io.File/separator "platforms" @@ -112,7 +113,8 @@ program-dependencies (let [deps (->> raw-paths (filter (complement compiler-dependency?)) (map prepare-path))] - (if is-stdlib? + (if (or is-stdlib? + (nil? stdlib-path)) deps (list* stdlib-path deps))) compiler-path (prepare-path (find-compiler-path raw-paths)) -- cgit v1.2.3