aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/config.go
diff options
context:
space:
mode:
authorTobias Bosch <tbosch@google.com>2019-10-28 14:26:51 -0700
committerTobias Bosch <tbosch@google.com>2019-11-01 00:05:45 +0000
commit8dd67e1063927b99ee18caa11ccee9abc1c0cbd1 (patch)
treec4a14c61db6294de2b58ab1b7b09d28c656fc047 /compiler_wrapper/config.go
parentb922860193acc4c2f5c9ae28e29f0f33deffcd1b (diff)
downloadtoolchain-utils-8dd67e1063927b99ee18caa11ccee9abc1c0cbd1.tar.gz
toolchain_utils: Remove comparison to old wrapper from compiler_wrapper.
BUG=chromium:773875 TEST='go test' passes Change-Id: Iecbe15067bf37fd86fbb8a907d42df32288821d6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1884701 Reviewed-by: George Burgess <gbiv@chromium.org> Tested-by: Tobias Bosch <tbosch@google.com>
Diffstat (limited to 'compiler_wrapper/config.go')
-rw-r--r--compiler_wrapper/config.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/compiler_wrapper/config.go b/compiler_wrapper/config.go
index 3e446201..5f389684 100644
--- a/compiler_wrapper/config.go
+++ b/compiler_wrapper/config.go
@@ -25,10 +25,6 @@ type config struct {
clangPostFlags []string
// Toolchain root path relative to the wrapper binary.
rootRelPath string
- // Path of the old wrapper using the toolchain root.
- oldWrapperPath string
- // Whether to mock out the calls that the old wrapper does.
- mockOldWrapperCmds bool
// Directory to store errors that were prevented with -Wno-error.
newWarningsDir string
// Version. Only used for printing via -print-cmd.
@@ -65,16 +61,14 @@ func getRealConfig() (*config, error) {
if err != nil {
return nil, wrapErrorwithSourceLocf(err, "invalid format for UseLLvmNext")
}
- // FIXME: Remove comparison to old wrapper once the new wrapper has landed.
- oldWrapperPath := ""
- config, err := getConfig(ConfigName, useCCache, useLlvmNext, oldWrapperPath, Version)
+ config, err := getConfig(ConfigName, useCCache, useLlvmNext, Version)
if err != nil {
return nil, err
}
return config, nil
}
-func getConfig(configName string, useCCache bool, useLlvmNext bool, oldWrapperPath string, version string) (*config, error) {
+func getConfig(configName string, useCCache bool, useLlvmNext bool, version string) (*config, error) {
cfg := config{}
switch configName {
case "cros.hardened":
@@ -92,7 +86,6 @@ func getConfig(configName string, useCCache bool, useLlvmNext bool, oldWrapperPa
if useLlvmNext {
cfg.clangFlags = append(cfg.clangFlags, llvmNextFlags...)
}
- cfg.oldWrapperPath = oldWrapperPath
cfg.version = version
return &cfg, nil
}