forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
llvmPackages_{14, git}.clang: add nostdlibinc flag
Fix header search paths as NixOS#153963
- Loading branch information
Showing
4 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
pkgs/development/compilers/llvm/14/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 3bfddeefc7b2..05b11d9e562d 100644 | ||
--- a/lib/Driver/Driver.cpp | ||
+++ b/lib/Driver/Driver.cpp | ||
@@ -482,6 +482,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
18 changes: 18 additions & 0 deletions
18
pkgs/development/compilers/llvm/git/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 3f29afd35971..223d2769cdfc 100644 | ||
--- a/lib/Driver/Driver.cpp | ||
+++ b/lib/Driver/Driver.cpp | ||
@@ -491,6 +491,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