summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-27 09:34:27 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-27 09:34:27 +0200
commit9a27c9cfd8b661af7b1135c3cb17896e61551abd (patch)
tree55c74ca01fb65046a66b677b05313a8b1dba45a2 /wscript
parent73926320d7f00ab079f04777fd924fee48d84000 (diff)
build: Simplify get_compiler()
Update #3818.
Diffstat (limited to 'wscript')
-rwxr-xr-xwscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/wscript b/wscript
index 59782c3e1b..5a6400e66d 100755
--- a/wscript
+++ b/wscript
@@ -1340,8 +1340,8 @@ def check_compiler(ctx, compiler):
def get_compiler(conf, cp, variant):
try:
- value = cp.get(conf.variant, "COMPILER")
- cp.remove_option(conf.variant, "COMPILER")
+ value = cp.get(variant, "COMPILER")
+ cp.remove_option(variant, "COMPILER")
value = no_unicode(value)
check_compiler(conf, value)
except configparser.NoOptionError: