brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · d1267c0 Raw
26 lines · c
1// Some assertions in this test use Linux style (/) file paths.2// TODO: Use LIBPATH on AIX3// UNSUPPORTED: system-windows, system-aix4 5// RUN: bash -c env | grep LD_LIBRARY_PATH | sed -ne 's/^.*=//p' | tr -d '\n' > %t.ld_library_path6// The PATH variable is heavily used when trying to find a linker.7// RUN: env -i LC_ALL=C LD_LIBRARY_PATH="%{readfile:%t.ld_library_path}" CLANG_NO_DEFAULT_CONFIG=1 \8// RUN:   %clang %s -### -o %t.o --target=i386-unknown-linux \9// RUN:     --sysroot=%S/Inputs/basic_linux_tree \10// RUN:     --rtlib=platform --unwindlib=platform -no-pie \11// RUN:     2>&1 | FileCheck --check-prefix=CHECK-LD-32 %s12//13// RUN: env -i LC_ALL=C PATH="" LD_LIBRARY_PATH="%{readfile:%t.ld_library_path}" CLANG_NO_DEFAULT_CONFIG=1 \14// RUN:   %clang %s -### -o %t.o --target=i386-unknown-linux \15// RUN:     --sysroot=%S/Inputs/basic_linux_tree \16// RUN:     --rtlib=platform --unwindlib=platform -no-pie \17// RUN:     2>&1 | FileCheck --check-prefix=CHECK-LD-32 %s18//19// CHECK-LD-32-NOT: warning:20// CHECK-LD-32: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"21// CHECK-LD-32: "{{.*}}/usr/lib/gcc/i386-unknown-linux/10.2.0{{/|\\\\}}crtbegin.o"22// CHECK-LD-32: "-L[[SYSROOT]]/usr/lib/gcc/i386-unknown-linux/10.2.0"23// CHECK-LD-32: "-L[[SYSROOT]]/usr/lib/gcc/i386-unknown-linux/10.2.0/../../../../i386-unknown-linux/lib"24// CHECK-LD-32: "-L[[SYSROOT]]/lib"25// CHECK-LD-32: "-L[[SYSROOT]]/usr/lib"26