Skip to content

Loading…

Pass cpp-options to UHC. #1697

Merged
merged 1 commit into from

2 participants

@nick8325

This patch passes any cpp-options stanzas in the .cabal file on to UHC (before, they were ignored).

@23Skidoo 23Skidoo merged commit 379652d into haskell:master

1 check passed

Details default The Travis CI build passed
@23Skidoo
Haskell member

Merged, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 22, 2014
  1. @nick8325

    Pass cpp-options to UHC.

    nick8325 committed
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.