}
tooling::CompileCommand getDefaultCompileCommand(PathRef File) {
- // We don't specify --std because we want to infer it from the filename.
- // We force PC because PS4 will change --std from under us.
- // FIXME: there must be a more principled way to do this!
- std::vector<std::string> CommandLine{
- "clang", "-fsyntax-only", "-target=unknown-pc-unknown", File.str()};
+ std::vector<std::string> CommandLine{"clang", "-fsyntax-only", File.str()};
return tooling::CompileCommand(llvm::sys::path::parent_path(File),
llvm::sys::path::filename(File), CommandLine,
/*Output=*/"");
--- /dev/null
+import re
+# We rely on the default -std being derived from the filetype.
+# PS4 sets a different -std, and many tests break.
+# FIXME: make our tests less brittle instead.
+if re.match(r'.*-scei-ps4', config.target_triple):
+ config.unsupported = True