mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 21:53:12 +08:00
[LinkerWrapper] Do not include config files for device linking (#87659)
Summary: The device linking phase only wants to create the necessary commands to emit the device binary. There were issues where the user's default config file was being used and passing incompatible arguments to the device compilation step. Simply disable this since we do not want any additional arguments to these clang invocations.
This commit is contained in:
@@ -458,6 +458,7 @@ Expected<StringRef> clang(ArrayRef<StringRef> InputFiles, const ArgList &Args) {
|
||||
StringRef OptLevel = Args.getLastArgValue(OPT_opt_level, "O2");
|
||||
SmallVector<StringRef, 16> CmdArgs{
|
||||
*ClangPath,
|
||||
"--no-default-config",
|
||||
"-o",
|
||||
*TempFileOrErr,
|
||||
Args.MakeArgString("--target=" + Triple.getTriple()),
|
||||
|
||||
Reference in New Issue
Block a user