aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper
diff options
context:
space:
mode:
authorRyan Beltran <ryanbeltran@chromium.org>2021-05-06 00:32:10 +0000
committerCommit Bot <commit-bot@chromium.org>2021-05-06 05:20:49 +0000
commitd6e464f0b206dbfac962b271c6cb9a6d1d4e87ba (patch)
tree7097784f1adccbd3cd65e73fea587d88a189184e /compiler_wrapper
parentd773afde0132d2f9bc31dd30121323ebde6e387b (diff)
downloadtoolchain-utils-d6e464f0b206dbfac962b271c6cb9a6d1d4e87ba.tar.gz
compiler_wrapper: remove LD_ARGV0 flag
This CL removes support for using the LD_ARGV0 flag in the compiler wrapper to set arg[0]. BUG=b:187069257 TEST=Rebuilt aarch64-cros-linux-gnu toolchain and verified clang++ called correctly (https://paste.googleplex.com/5669729663451136) Change-Id: I3055a8b1e978f9e5f1eaae91dbc6008f86206246 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2876078 Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Commit-Queue: Ryan Beltran <ryanbeltran@chromium.org> Tested-by: Ryan Beltran <ryanbeltran@chromium.org>
Diffstat (limited to 'compiler_wrapper')
-rw-r--r--compiler_wrapper/command.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler_wrapper/command.go b/compiler_wrapper/command.go
index 69578597..e6ea6690 100644
--- a/compiler_wrapper/command.go
+++ b/compiler_wrapper/command.go
@@ -24,15 +24,8 @@ type command struct {
}
func newProcessCommand() *command {
- // This is a workaround for the fact that ld.so does not support
- // passing in the executable name when ld.so is invoked as
- // an executable (crbug/1003841).
- path := os.Getenv("LD_ARGV0")
- if path == "" {
- path = os.Args[0]
- }
return &command{
- Path: path,
+ Path: os.Args[0],
Args: os.Args[1:],
}
}