Skip to content

Commit

Permalink
Fix cross-compilation (exclude TH) (#2621)
Browse files Browse the repository at this point in the history
Co-authored-by: gabby <[email protected]>
  • Loading branch information
ysangkok and Gabriella439 authored Dec 20, 2024
1 parent e9f37ae commit 4f185b9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dhall/dhall.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ Common common
if flag(network-tests)
CPP-Options:
-DNETWORK_TESTS
if flag(cross)
CPP-Options: -DCROSS

GHC-Options: -Wall -Wcompat -Wincomplete-uni-patterns -optP-Wno-unicode-homoglyph

Expand Down Expand Up @@ -432,10 +434,12 @@ Test-Suite tasty
Dhall.Test.Schemas
Dhall.Test.SemanticHash
Dhall.Test.Substitution
Dhall.Test.TH
Dhall.Test.Tutorial
Dhall.Test.TypeInference
Dhall.Test.Util
if !flag(cross)
Other-Modules:
Dhall.Test.TH
Build-Depends:
dhall ,
foldl < 1.5 ,
Expand Down
5 changes: 5 additions & 0 deletions dhall/tests/Dhall/Test/Main.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
module Main where

import System.FilePath ((</>))
Expand All @@ -17,7 +18,9 @@ import qualified Dhall.Test.QuickCheck
import qualified Dhall.Test.Regression
import qualified Dhall.Test.Schemas
import qualified Dhall.Test.SemanticHash
#ifndef CROSS
import qualified Dhall.Test.TH
#endif
import qualified Dhall.Test.Tags
import qualified Dhall.Test.Tutorial
import qualified Dhall.Test.TypeInference
Expand Down Expand Up @@ -69,7 +72,9 @@ getAllTests = do
, Dhall.Test.Tutorial.tests
, Dhall.Test.QuickCheck.tests
, Dhall.Test.Dhall.tests
#ifndef CROSS
, Dhall.Test.TH.tests
#endif
, Dhall.Test.Package.tests
]

Expand Down

0 comments on commit 4f185b9

Please sign in to comment.