Skip to content

Commit

Permalink
impl-posix: Added support for $PREFIX.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax committed Nov 13, 2024
1 parent 793448a commit 4bf418f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/impls/impl-posix/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@ Res<Str> repoRoot() {
if (not maybeRepo)
maybeRepo = getenv("SKIFT_BUNDLES");

#ifdef __ck_prefix__
if (not maybeRepo)
maybeRepo = __ck_prefix__;
#endif

if (not maybeRepo)
return Error::notFound("SKIFT_BUNDLES not set");

Expand Down

0 comments on commit 4bf418f

Please sign in to comment.