diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-06-03 18:51:17 -0400 |
---|---|---|
committer | Ben Gamari <ben@well-typed.com> | 2019-06-12 17:58:27 -0400 |
commit | 27eb7abf65af1be9c4822848c5be9e324ffbe7f4 (patch) | |
tree | 901c3085cefc34b9850e8d4777783098df84b4b7 /compiler/main/SysTools/Info.hs | |
parent | 7b751ed89a97545e9ff9c9814a3d5440a8d42d64 (diff) | |
download | haskell-wip/T16738.tar.gz |
Maintain separate flags for C++ compiler invocationswip/T16738
Previously we would pass flags intended for the C compiler to the C++
compiler (see #16738). This would cause, for instance, `-std=gnu99` to
be passed to the C++ compiler, causing spurious test failures. Fix this
by maintaining a separate set of flags for C++ compilation invocations.
Diffstat (limited to 'compiler/main/SysTools/Info.hs')
-rw-r--r-- | compiler/main/SysTools/Info.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/SysTools/Info.hs b/compiler/main/SysTools/Info.hs index 2dcd39549f..9aa9002c23 100644 --- a/compiler/main/SysTools/Info.hs +++ b/compiler/main/SysTools/Info.hs @@ -219,7 +219,7 @@ getCompilerInfo dflags = do -- See Note [Run-time linker info]. getCompilerInfo' :: DynFlags -> IO CompilerInfo getCompilerInfo' dflags = do - let (pgm,_) = pgm_c dflags + let pgm = pgm_c dflags -- Try to grab the info from the process output. parseCompilerInfo _stdo stde _exitc -- Regular GCC |