diff options
| author | 2020-12-23 01:21:28 +0000 | |
|---|---|---|
| committer | 2020-12-23 01:21:28 +0000 | |
| commit | e794b1e30262ac2af41bf1bdb23cc975773451b5 (patch) | |
| tree | c054bd284f2e3a5539e7edf481831f39a0b44480 /rust/compiler.go | |
| parent | 98dea9498230f5809f80edc258a9d46140e2aebb (diff) | |
| parent | 18aefc19776337955c9a1a8946f188900cb4d537 (diff) | |
Merge "Remove unnecessary snake case variables."
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  |