Skip to content

Commit

Permalink
Simplify cargo_rustc_args
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Oct 5, 2017
1 parent 57880e6 commit b9ff8b3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/thermite/cargo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,16 @@ def cargo_recommended_msg
private

def cargo_rustc_args
args = []
unless config.dynamic_linker_flags == '' || config.target_os == 'mingw32'
args.push(
if config.dynamic_linker_flags == '' || config.target_os == 'mingw32'
[]
else
[
'--lib',
'--',
'-C',
"link-args=#{config.dynamic_linker_flags}"
)
]
end

args
end
end
end

0 comments on commit b9ff8b3

Please sign in to comment.