Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Bencodes committed Dec 9, 2020
1 parent 51bcf2e commit 4ede8a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kotlin/internal/jvm/compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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}
if len(language_versions) != 1:
fail("Conflicting kt language versions: %s" % language_versions)
return _KtJvmInfo(
Expand All @@ -179,7 +179,7 @@ def _kotlinc_options_provider_to_flags(opts, language_version):
return ""

# Validate the compiler opts before they are mapped over to flags
_validate_kotlinc_options(opts, language_verison)
_validate_kotlinc_options(opts, language_version)

flags = []
if opts.warn == "off":
Expand Down Expand Up @@ -351,7 +351,7 @@ def _run_kt_builder_action(
for f, path in outputs.items():
args.add("--" + f, path)

args.add_all("--kotlin_passthrough_flags", _kotlinc_options_provider_to_flags(toolchains.kt.kotlinc_options, toolchains.kt.language_verison))
args.add_all("--kotlin_passthrough_flags", _kotlinc_options_provider_to_flags(toolchains.kt.kotlinc_options, toolchains.kt.language_version))
args.add_all("--javacopts", _javac_options_provider_to_flags(toolchains.kt.javac_options))
# TODO: Implement Strict Kotlin deps: (https://github.com/bazelbuild/rules_kotlin/issues/419)
# This flag is currently unused by the builder but required for the unused_deps tool
Expand Down

0 comments on commit 4ede8a5

Please sign in to comment.