Permalink
Browse files

Pass cpp-options to UHC.

  • Loading branch information...
1 parent 8630b80 commit 55349b124b9c709057c50389497b2ab498300b24 @nick8325 nick8325 committed Feb 22, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 Cabal/Distribution/Simple/UHC.hs
@@ -247,6 +247,8 @@ constructUHCCmdLine user system lbi bi clbi odir verbosity =
++ ["-i" ++ odir]
++ ["-i" ++ l | l <- nub (hsSourceDirs bi)]
++ ["-i" ++ autogenModulesDir lbi]
+ -- cpp options
+ ++ ["--optP=" ++ opt | opt <- cppOptions bi]
-- output path
++ ["--odir=" ++ odir]
-- optimization

0 comments on commit 55349b1

Please sign in to comment.