[llvm-commits] CVS: llvm/test/Feature/TestAsmDisasm.sh

John Criswell criswell at choi.cs.uiuc.edu
Fri Jun 20 11:16:02 PDT 2003


Changes in directory llvm/test/Feature:

TestAsmDisasm.sh updated: 1.9 -> 1.10

---
Log message:

The modifications to LD_LIBRARY_PATH now add the specified paths to the
beginning of LD_LIBRARY_PATH as opposed to simply replacing it.
This allows users to use LD_LIBRARY_PATH when running tests (useful for
when they have installed their own version of GCC).



---
Diffs of the changes:

Index: llvm/test/Feature/TestAsmDisasm.sh
diff -u llvm/test/Feature/TestAsmDisasm.sh:1.9 llvm/test/Feature/TestAsmDisasm.sh:1.10
--- llvm/test/Feature/TestAsmDisasm.sh:1.9	Thu Aug 15 14:49:06 2002
+++ llvm/test/Feature/TestAsmDisasm.sh	Fri Jun 20 11:14:27 2003
@@ -4,7 +4,17 @@
 
 rm -f test.bc.temp[12]
 
-LD_LIBRARY_PATH=$3
+#
+# Split the current LD_LIBRARY_PATH into two separate components.
+#
+FirstLDP=`echo $LD_LIBRARY_PATH | cut -d\; -f1`
+SecondLDP=`echo $LD_LIBRARY_PATH | cut -d\; -f2`
+
+#
+# Now create a new LD_LIBRARY_PATH with our command line options as
+# the first section.
+#
+LD_LIBRARY_PATH="$3:${FirstLDP}\;${SecondLDP}"
 export LD_LIBRARY_PATH
 
 AS=$2/as





More information about the llvm-commits mailing list