Skip to content

Commit

Permalink
Fix min version guard for Cabal
Browse files Browse the repository at this point in the history
The Distribution.Utils.Path module has been exposed from Cabal version
3.6 on.
  • Loading branch information
kenranunderscore authored and fkm3 committed Mar 5, 2023
1 parent 555d90c commit 00aeb23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow-core-ops/Setup.hs
Expand Up @@ -28,7 +28,7 @@ import Distribution.Simple
, simpleUserHooks
, UserHooks(..)
)
#if MIN_VERSION_Cabal(3,1,0)
#if MIN_VERSION_Cabal(3,6,0)
import Distribution.Utils.Path (unsafeMakeSymbolicPath)
#endif
import Data.List (intercalate)
Expand Down Expand Up @@ -84,7 +84,7 @@ fudgePackageDesc lbi p = p
}
where
fudgeBuildInfo bi =
#if MIN_VERSION_Cabal(3,1,0)
#if MIN_VERSION_Cabal(3,6,0)
bi { hsSourceDirs = unsafeMakeSymbolicPath (autogenModulesDir lbi) : hsSourceDirs bi }
#else
bi { hsSourceDirs = autogenModulesDir lbi : hsSourceDirs bi }
Expand Down

0 comments on commit 00aeb23

Please sign in to comment.