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

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


Changes in directory llvm/test/Feature:

TestOptimizer.sh updated: 1.16 -> 1.17

---
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/TestOptimizer.sh
diff -u llvm/test/Feature/TestOptimizer.sh:1.16 llvm/test/Feature/TestOptimizer.sh:1.17
--- llvm/test/Feature/TestOptimizer.sh:1.16	Fri Aug 16 14:34:33 2002
+++ llvm/test/Feature/TestOptimizer.sh	Fri Jun 20 11:14:49 2003
@@ -1,5 +1,16 @@
 #!/bin/sh
-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