Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Scala Native build target #2898

Merged
merged 4 commits into from
Nov 25, 2023

Conversation

lolgab
Copy link
Member

@lolgab lolgab commented Nov 24, 2023

This allows to build static and dynamic libraries other than binaries.

Pull Request: #2898

@lolgab lolgab marked this pull request as ready for review November 25, 2023 09:07
@lolgab lolgab requested a review from lefou November 25, 2023 10:42
@lolgab lolgab marked this pull request as draft November 25, 2023 10:47
@lolgab lolgab changed the title Support Scala Native build target [WIP] Support Scala Native build target Nov 25, 2023
@lolgab lolgab changed the title [WIP] Support Scala Native build target Support Scala Native build target Nov 25, 2023
Copy link
Member

@lefou lefou left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@@ -65,8 +65,7 @@ class ScalaNativeWorkerImpl extends mill.scalanativelib.worker.api.ScalaNativeWo
nativeDump: Boolean,
logLevel: NativeLogLevel,
buildTarget: BuildTarget
): Object = {
val entry = if (patchIsGreaterThanOrEqual(3)) mainClass else mainClass + "$"
): Either[String, Object] = {
Copy link
Member

Choose a reason for hiding this comment

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

This could be a Either[String, Config]. Refining return types is allowed.

@lolgab lolgab marked this pull request as ready for review November 25, 2023 12:57
@lolgab lolgab merged commit b15576f into com-lihaoyi:main Nov 25, 2023
37 checks passed
@lolgab lolgab deleted the support-scala-native-build-target branch November 25, 2023 20:24
@lefou lefou added this to the after 0.11.6 milestone Nov 25, 2023
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