Skip to content

Commit e53925d

Browse files
apollowwCarlos Gálvez
authored andcommitted
[Clang][test] Limit library search when linking shared lib (llvm#80253)
Don't search for unnecessary libs when linking the shared lib. This allows the test to run in chroot environment.
1 parent 6c05e44 commit e53925d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/Interpreter/cxx20-modules.cppm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// RUN: %clang -std=c++20 %t/mod.cppm --precompile \
99
// RUN: -o %t/mod.pcm --target=x86_64-linux-gnu
1010
// RUN: %clang -fPIC %t/mod.pcm -c -o %t/mod.o --target=x86_64-linux-gnu
11-
// RUN: %clang -fPIC -shared %t/mod.o -o %t/libmod.so --target=x86_64-linux-gnu
11+
// RUN: %clang -nostdlib -fPIC -shared %t/mod.o -o %t/libmod.so --target=x86_64-linux-gnu
1212
//
1313
// RUN: cat %t/import.cpp | env LD_LIBRARY_PATH=%t:$LD_LIBRARY_PATH \
1414
// RUN: clang-repl -Xcc=-std=c++20 -Xcc=-fmodule-file=M=%t/mod.pcm \

0 commit comments

Comments
 (0)