Skip to content

Commit d71831a

Browse files
committed
[NFC] [clang-repl] Fix test failures due to incosistent target settings
See #79261 for details. It shows that clang-repl uses a different target triple with clang so that it may be problematic if the calng-repl reads the generated BMI from clang in a different target triple. While the underlying issue is not easy to fix, this patch tries to make this test green to not bother developers.
1 parent f292f90 commit d71831a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/test/Interpreter/cxx20-modules.cppm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
// RUN: split-file %s %t
77
//
88
// RUN: %clang -std=c++20 %t/mod.cppm --precompile \
9-
// RUN: -o %t/mod.pcm
10-
// RUN: %clang %t/mod.pcm -c -o %t/mod.o
11-
// RUN: %clang -shared %t/mod.o -o %t/libmod.so
9+
// RUN: -o %t/mod.pcm --target=x86_64-linux-gnu
10+
// RUN: %clang %t/mod.pcm -c -o %t/mod.o --target=x86_64-linux-gnu
11+
// RUN: %clang -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 \
15-
// RUN: | FileCheck %t/import.cpp
15+
// RUN: -Xcc=--target=x86_64-linux-gnu | FileCheck %t/import.cpp
1616

1717
//--- mod.cppm
1818
export module M;

0 commit comments

Comments
 (0)