Skip to content

Commit fc3a27f

Browse files
[Clang] Correctly set LD_LIBRARY_PATH in env.c
Before the environment variable would have a LD_LIBRARY_PATH= prefix which means we would be setting the variable incorrectly. Setting it incorrectly does not seem to break anything but might impact test fidelity.
1 parent 1ada9b9 commit fc3a27f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/Driver/env.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Some assertions in this test use Linux style (/) file paths.
22
// UNSUPPORTED: system-windows
3-
// RUN: bash -c env | grep LD_LIBRARY_PATH | tr -d '\n' > %t.ld_library_path
3+
// RUN: bash -c env | grep LD_LIBRARY_PATH | sed -ne 's/^.*=//p' | tr -d '\n' > %t.ld_library_path
44
// The PATH variable is heavily used when trying to find a linker.
55
// RUN: env -i LC_ALL=C LD_LIBRARY_PATH="%{readfile:%t.ld_library_path}" CLANG_NO_DEFAULT_CONFIG=1 \
66
// RUN: %clang %s -### -o %t.o --target=i386-unknown-linux \

0 commit comments

Comments
 (0)