diff options
author | Joseph Huber <huberjn@outlook.com> | 2024-04-08 07:14:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-08 07:14:52 -0500 |
commit | 86b0918e8e5f8e1aacebf4ba8901fc66aed3412f (patch) | |
tree | 835b56d5410b6d94720d7f688f99a89de52c9768 | |
parent | 5a855d51272608e2122c45d86676aa2247a11d19 (diff) |
[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.
-rw-r--r-- | clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp index c60be2789bd6..73e695a67093 100644 --- a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp +++ b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp @@ -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()), |