-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ghcHEAD: Add back response files patch
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
pkgs/development/compilers/ghc/ghc-HEAD-dont-pass-linker-flags-via-response-files.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,20 @@ | ||
--- ghc/compiler/main/SysTools.hs 2016-11-09 14:03:05.304528147 -0500 | ||
+++ ghc2/compiler/main/SysTools.hs 2016-11-09 14:00:19.712934686 -0500 | ||
@@ -421,7 +421,7 @@ | ||
args1 = map Option (getOpts dflags opt_c) | ||
args2 = args0 ++ args1 ++ args | ||
mb_env <- getGccEnv args2 | ||
- runSomethingResponseFile dflags cc_filter "C Compiler" p args2 mb_env | ||
+ runSomethingFiltered dflags cc_filter "C Compiler" p args2 mb_env | ||
where | ||
-- discard some harmless warnings from gcc that we can't turn off | ||
cc_filter = unlines . doFilter . lines | ||
@@ -911,7 +911,7 @@ | ||
args1 = map Option (getOpts dflags opt_l) | ||
args2 = args0 ++ linkargs ++ args1 ++ args | ||
mb_env <- getGccEnv args2 | ||
- runSomethingResponseFile dflags ld_filter "Linker" p args2 mb_env | ||
+ runSomethingFiltered dflags ld_filter "Linker" p args2 mb_env | ||
where | ||
ld_filter = case (platformOS (targetPlatform dflags)) of | ||
OSSolaris2 -> sunos_ld_filter |
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
da547f7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peti this fixes the issue
@corngood Any chance you could take a look at the log and see why your response files patch wasn't enough here?
da547f7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, sorry for not getting to this sooner. I didn't see anything obvious in the in that log, so I'll have to try building it myself.