summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Wang <apollo.mobility@gmail.com>2024-02-01 00:29:59 -0800
committerGitHub <noreply@github.com>2024-02-01 00:29:59 -0800
commitae931b470319ade31fcc0797b6051eb8b96f9a8a (patch)
tree5868d48c050e66786c5d4e612c5201a626921cc0
parent84564e1040be8df037d2e9cdbb494aef067e77a7 (diff)
[Clang][test] Limit library search when linking shared lib (#80253)
Don't search for unnecessary libs when linking the shared lib. This allows the test to run in chroot environment.
-rw-r--r--clang/test/Interpreter/cxx20-modules.cppm2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Interpreter/cxx20-modules.cppm b/clang/test/Interpreter/cxx20-modules.cppm
index 239968d8c744..4e56e2fc1528 100644
--- a/clang/test/Interpreter/cxx20-modules.cppm
+++ b/clang/test/Interpreter/cxx20-modules.cppm
@@ -8,7 +8,7 @@
// RUN: %clang -std=c++20 %t/mod.cppm --precompile \
// RUN: -o %t/mod.pcm --target=x86_64-linux-gnu
// RUN: %clang -fPIC %t/mod.pcm -c -o %t/mod.o --target=x86_64-linux-gnu
-// RUN: %clang -fPIC -shared %t/mod.o -o %t/libmod.so --target=x86_64-linux-gnu
+// RUN: %clang -nostdlib -fPIC -shared %t/mod.o -o %t/libmod.so --target=x86_64-linux-gnu
//
// RUN: cat %t/import.cpp | env LD_LIBRARY_PATH=%t:$LD_LIBRARY_PATH \
// RUN: clang-repl -Xcc=-std=c++20 -Xcc=-fmodule-file=M=%t/mod.pcm \