diff options
author | Thomas Nagy <tnagy2pow10@gmail.com> | 2015-02-27 17:02:03 +0100 |
---|---|---|
committer | Amar Takhar <amar@rtems.org> | 2015-12-11 15:15:47 -0500 |
commit | 375662ed7cda243ab5cb95d9646d1e9888b41442 (patch) | |
tree | d09f8621d04da7848f020e845f9bff4fd87c3f2a | |
parent | b728ff3dc9df52e2647089cc3d3d3993606053df (diff) |
Execurte rtems4.11-ld through ctx.cmd_and_log to improve portability (encoding, newlines)
-rw-r--r-- | rtems_waf/configure.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/rtems_waf/configure.py b/rtems_waf/configure.py index db93f293e7..aceb0a5518 100644 --- a/rtems_waf/configure.py +++ b/rtems_waf/configure.py @@ -156,9 +156,7 @@ def depend_version(ctx): ctx.start_msg("Checking Binutils version") cmd = ctx.env.BIN_RTEMS_LD + ["-v"] - p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=None) - stdout, stderr = p.communicate() - ctx.env.LD_VERSION = stdout.decode("utf-8").split(" ")[4].replace("\n", "") + ctx.env.LD_VERSION = ctx.cmd_and_log(cmd, quiet=0).strip().split(" ")[-1] ctx.end_msg(ctx.env.LD_VERSION) |