Skip to content

Add jank-build-util package - #18

Merged
jeaye merged 4 commits into
jank-lang:mainfrom
kylc:add-build-util
Oct 11, 2026
Merged

jeaye merged 4 commits into
jank-lang:mainfrom
kylc:add-build-util

Conversation

@kylc

@kylc kylc commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Adds a package with common build-related utility functions, including a standardized jank build directives API.

I'm also not opposed to moving jank-build-pkg-config and jank-build-cmake into here, since there's not much reason to keep a bunch of tiny build packages around. In which case we could call this package just jank-build to be more all-encompassing.

What do you think @jeaye?

Will update usages across commons once this gets published.

@kylc
kylc requested a review from jeaye October 8, 2026 05:36
@jeaye

jeaye commented Oct 8, 2026

Copy link
Copy Markdown
Member

I like it. We address the string building problem, the platform checking problem, and we have a single place to consolidate the build helpers. Let's do it.

@kylc

kylc commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

I've renamed to jank-build, moved the pkg-config and cmake helpers here, added tests, and did some cleanup.

Comment on lines +16 to +18
"CMAKE_INSTALL_BINDIR" "bin"
"CMAKE_INSTALL_LIBDIR" "lib"
"CMAKE_INSTALL_INCLUDEDIR" "include"}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New default so we don't have to specify these in build files.

(when (and (not static?) rpath)
{"CMAKE_INSTALL_RPATH" rpath}))))

(defn cmake

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function is now cmake instead of build, to match the pkg-config function. I think we will :refer these in build scripts.

jeaye
jeaye previously approved these changes Oct 9, 2026

@jeaye jeaye left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I like how this is shaping up. All set to merge and publish this?

@kylc

kylc commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

I will do some testing on other commons packages locally tomorrow, and give you the OK if everything looks good.

@kylc

kylc commented Oct 10, 2026

Copy link
Copy Markdown
Contributor Author

OK this is ready to go now, pending CI.

@jeaye jeaye left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, Kyle!

@jeaye
jeaye merged commit ef42399 into jank-lang:main Oct 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants