diff options
author | 2020-12-21 09:11:10 -0800 | |
---|---|---|
committer | 2020-12-22 12:38:35 -0800 | |
commit | 18aefc19776337955c9a1a8946f188900cb4d537 (patch) | |
tree | b3e831f67d9ec2952839b9ab156c0a6ba149d491 /rust/compiler.go | |
parent | 1f8c2729846b83e24c09292ef5739b13375f7c0c (diff) |
Remove unnecessary snake case variables.
Test: m nothing + TreeHugger
Change-Id: I99f7162944daa6c57c6ae4763261e108bb5cb6b1
Diffstat (limited to 'rust/compiler.go')
-rw-r--r-- | rust/compiler.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/compiler.go b/rust/compiler.go index 4312452d2..ee88a273f 100644 --- a/rust/compiler.go +++ b/rust/compiler.go @@ -214,9 +214,9 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags) Flag flags.GlobalLinkFlags = append(flags.GlobalLinkFlags, ctx.toolchain().ToolchainLinkFlags()) if ctx.Host() && !ctx.Windows() { - rpath_prefix := `\$$ORIGIN/` + rpathPrefix := `\$$ORIGIN/` if ctx.Darwin() { - rpath_prefix = "@loader_path/" + rpathPrefix = "@loader_path/" } var rpath string @@ -225,8 +225,8 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags) Flag } else { rpath = "lib" } - flags.LinkFlags = append(flags.LinkFlags, "-Wl,-rpath,"+rpath_prefix+rpath) - flags.LinkFlags = append(flags.LinkFlags, "-Wl,-rpath,"+rpath_prefix+"../"+rpath) + flags.LinkFlags = append(flags.LinkFlags, "-Wl,-rpath,"+rpathPrefix+rpath) + flags.LinkFlags = append(flags.LinkFlags, "-Wl,-rpath,"+rpathPrefix+"../"+rpath) } return flags |