diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-09-27 09:34:27 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-09-27 09:34:27 +0200 |
commit | 9a27c9cfd8b661af7b1135c3cb17896e61551abd (patch) | |
tree | 55c74ca01fb65046a66b677b05313a8b1dba45a2 | |
parent | 73926320d7f00ab079f04777fd924fee48d84000 (diff) |
build: Simplify get_compiler()
Update #3818.
-rwxr-xr-x | wscript | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |