changeset 3f4372fa8e6c in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=3f4372fa8e6c
description:
        scons: Fix python-config parsing by adding strip()

        This patch fixes an issue with the way the python-config path is
        parsed, as it caused issues on systems where a newline ended up being
        included in the path.

diffstat:

 SConstruct |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r ca6f1407f8f8 -r 3f4372fa8e6c SConstruct
--- a/SConstruct        Thu Apr 10 13:43:33 2014 -0500
+++ b/SConstruct        Sun Apr 13 10:07:55 2014 -0400
@@ -876,7 +876,8 @@
 # First we check if python2-config exists, else we use python-config
 python_config = readCommand(['which', 'python2-config'], exception='').strip()
 if not os.path.exists(python_config):
-    python_config = readCommand(['which', 'python-config'], exception='')
+    python_config = readCommand(['which', 'python-config'],
+                                exception='').strip()
 py_includes = readCommand([python_config, '--includes'],
                           exception='').split()
 # Strip the -I from the include folders before adding them to the
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to