summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: