-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153963 from crabtw/clang13
llvmPackages_13.clang: add nostdlibinc flag
- Loading branch information
Showing
2 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
pkgs/development/compilers/llvm/13/clang/add-nostdlibinc-flag.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp | ||
index 94a7553e273b..8a1d455950b2 100644 | ||
--- a/lib/Driver/Driver.cpp | ||
+++ b/lib/Driver/Driver.cpp | ||
@@ -412,6 +412,13 @@ DerivedArgList *Driver::TranslateInputArgs(const InputArgList &Args) const { | ||
} | ||
#endif | ||
|
||
+ { | ||
+ Arg *A = DAL->MakeFlagArg(/*BaseArg=*/nullptr, | ||
+ Opts.getOption(options::OPT_nostdlibinc)); | ||
+ A->claim(); | ||
+ DAL->append(A); | ||
+ } | ||
+ | ||
return DAL; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters