Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Pass cpp-options to UHC.

  • Loading branch information...
commit 55349b124b9c709057c50389497b2ab498300b24 1 parent 8630b80
@nick8325 nick8325 authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  Cabal/Distribution/Simple/UHC.hs
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.