-
Notifications
You must be signed in to change notification settings - Fork 213
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 -Xno-optimized-callable-references kotlinc flag #394
Support -Xno-optimized-callable-references kotlinc flag #394
Conversation
4d562a7
to
e9e321c
Compare
Rebased this one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a check in _kotlin_toolchain_impl on the version number is gte 1.4
kotlin/internal/opts.bzl
Outdated
"x_no_optimized_callable_references": struct( | ||
args = dict( | ||
default = False, | ||
doc = "Do not use optimized callable reference superclasses available from 1.4.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: "Do not use optimized callable reference superclasses. Available from 1.4."
It would probably make more sense to do the validation in |
Reasonable, considering #418. |
5fb0f79
to
acc0b09
Compare
@@ -162,7 +162,7 @@ def _adjust_resources_path(path, resource_strip_prefix): | |||
return _adjust_resources_path_by_default_prefixes(path) | |||
|
|||
def _merge_kt_jvm_info(module_name, providers): | |||
language_versions = {p.language_version: True for p in providers if p.language_verison} | |||
language_versions = {p.language_version: True for p in providers if p.language_version} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to have been a typo here
Updated with some basic validation |
4ede8a5
to
4b050b8
Compare
Is it me, or the kotlinc flags getting longer? |
4b050b8
to
56b5c2f
Compare
Rebased this after all the kotlinc merges. |
Ah, thanks. Meant to rebase the pr and got distracted. |
https://github.com/JetBrains/kotlin/blob/68fdeaf865f279cb7a75eaec7e9f4e6cd0646707/compiler/testData/cli/jvm/extraHelp.out#L77-L78