[rtems commit] build: Simplify get_compiler()
Sebastian Huber
sebh at rtems.org
Sun Sep 27 07:40:37 UTC 2020
Module: rtems
Branch: master
Commit: 9a27c9cfd8b661af7b1135c3cb17896e61551abd
Changeset: http://git.rtems.org/rtems/commit/?id=9a27c9cfd8b661af7b1135c3cb17896e61551abd
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Sun Sep 27 09:34:27 2020 +0200
build: Simplify get_compiler()
Update #3818.
---
wscript | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wscript b/wscript
index 59782c3..5a6400e 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:
More information about the vc
mailing list