From 00aeb23b1e24b9b7b73f7906f1bdd9257d543c69 Mon Sep 17 00:00:00 2001 From: Johannes Maier Date: Fri, 3 Mar 2023 14:17:34 +0100 Subject: [PATCH] Fix min version guard for Cabal The Distribution.Utils.Path module has been exposed from Cabal version 3.6 on. --- tensorflow-core-ops/Setup.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow-core-ops/Setup.hs b/tensorflow-core-ops/Setup.hs index 51aea90..0e0fa50 100644 --- a/tensorflow-core-ops/Setup.hs +++ b/tensorflow-core-ops/Setup.hs @@ -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) @@ -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 }