Skip to content

Commit 86b0918

Browse files
authored
[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.
1 parent 5a855d5 commit 86b0918

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ Expected<StringRef> clang(ArrayRef<StringRef> InputFiles, const ArgList &Args) {
458458
StringRef OptLevel = Args.getLastArgValue(OPT_opt_level, "O2");
459459
SmallVector<StringRef, 16> CmdArgs{
460460
*ClangPath,
461+
"--no-default-config",
461462
"-o",
462463
*TempFileOrErr,
463464
Args.MakeArgString("--target=" + Triple.getTriple()),

0 commit comments

Comments
 (0)