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

Read default Scala Native env variables #1253

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

lolgab
Copy link
Member

@lolgab lolgab commented Apr 1, 2021

  • Make nativeOptimize configurable
  • Env variables are proper T.inputs and are evaluated every time

@lolgab lolgab marked this pull request as ready for review April 2, 2021 07:17
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.

@lefou
Copy link
Member

lefou commented Apr 2, 2021

Could you please rebase to latest master, which should produce cleaner CI results?

- Make `nativeOptimize` configurable
- Env variables are proper `T.input`s and are evaluated every time
@lolgab lolgab force-pushed the scala-native-env-variables branch from 39b282b to aa2f3dc Compare April 2, 2021 14:26
@lolgab
Copy link
Member Author

lolgab commented Apr 5, 2021

@lefou Can this be merged? The CI steps that are failing are failing in master too.

@lefou lefou merged commit 6871185 into com-lihaoyi:master Apr 6, 2021
@lefou lefou added this to the after 0.9.6 milestone Apr 6, 2021
@lefou
Copy link
Member

lefou commented Apr 6, 2021

Sure. Thank you!

lolgab added a commit to lolgab/mill that referenced this pull request Apr 7, 2021
- com-lihaoyi#1253 used `valueOf` which
  given a Java `enum` it matches the name of the classes and not
  the string values that match the official Scala Native env variables
  values. This PR uses instead `.values` which returns all the values
  then matches based on the `String value` the enums define.
lefou pushed a commit that referenced this pull request Apr 8, 2021
* Fix Scala Native env variables values to match sbt

- #1253 used `valueOf` which
  given a Java `enum` it matches the name of the classes and not
  the string values that match the official Scala Native env variables
  values. This PR uses instead `.values` which returns all the values
  then matches based on the `String value` the enums define.

* Make tasks inputs protected in ScalaNativeModule

Pull request: #1258
@lolgab lolgab deleted the scala-native-env-variables branch February 22, 2022 09:45
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