Skip to content

Commit

Permalink
Fix version check in rustc.bzl (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
hlopko committed Oct 24, 2018
1 parent 981d217 commit 2231755
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rust/private/rustc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ def rustc_compile_action(

rpaths = _compute_rpaths(toolchain, output_dir, depinfo)

if versions.is_at_least("0.18.0", BAZEL_VERSION):
if (len(BAZEL_VERSION) == 0 or
versions.is_at_least("0.18.0", BAZEL_VERSION)):
user_link_flags = ctx.fragments.cpp.linkopts
else:
user_link_flags = depset(ctx.fragments.cpp.linkopts)
Expand Down

0 comments on commit 2231755

Please sign in to comment.