diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-09-30 17:43:28 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-09-30 18:19:39 +0200 |
| commit | aeb115d559c880157a0fe849d02d3e0bb14a91e4 (patch) | |
| tree | 6c1b5e154681a7b1f0bddddfe1ebf2d44f3135cb /sys/targets | |
| parent | 6dfc77ac6a384fb2cb310edb98695e4c9eed3191 (diff) | |
sys/targets: make Go 1.11 compatible
Use strings.Replace as 1.11 does not have ReplaceAll
and we will need this package in the dashboard code.
Update #2144
Diffstat (limited to 'sys/targets')
| -rw-r--r-- | sys/targets/targets.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go index 7c0ab8fef..0ac036247 100644 --- a/sys/targets/targets.go +++ b/sys/targets/targets.go @@ -586,7 +586,7 @@ func (target *Target) replaceSourceDir(param *string, sourceDir string) { target.BrokenCompiler = "SOURCEDIR is not set" return } - *param = strings.ReplaceAll(*param, sourceDirVar, sourceDir) + *param = strings.Replace(*param, sourceDirVar, sourceDir, -1) } func (target *Target) lazyInit() { |
