Skip to content

Commit

Permalink
[LinkerWrapper] Do not include config files for device linking (#87659)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jhuber6 committed Apr 8, 2024
1 parent 5a855d5 commit 86b0918
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down

0 comments on commit 86b0918

Please sign in to comment.