Skip to content

Commit c46b04b

Browse files
committed
Try -fno-builtin to solve prefetch conflicts on MSVC ARM
This comes from a name‐collision between Clang’s own ARM prefetch builtin (__prefetch) and the declaration that MSVC’s <intrin.h> injects for the same symbol under extern "C" llvm/llvm-project#87515
1 parent f7f9c63 commit c46b04b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittests/CppInterOp/ScopeReflectionTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ TEST(ScopeReflectionTest, IsBuiltin) {
168168
// "int", "unsigned int", "long", "unsigned long", "long long", "unsigned long long",
169169
// "float", "double", "long double", "void"}
170170

171-
std::vector<const char*> interpreter_args = { "-include", "new" };
171+
std::vector<const char*> interpreter_args = {"-fno-builtin", "-include", "new" };
172172

173173
Cpp::CreateInterpreter(interpreter_args);
174174
ASTContext &C = Interp->getCI()->getASTContext();

0 commit comments

Comments
 (0)