From 8e3914db4f43f5fdeba0393db93253f2f0cc674f Mon Sep 17 00:00:00 2001 From: Dan Zheng Date: Fri, 8 Jan 2021 12:30:58 -0500 Subject: [PATCH] Fix `stack build` on macOS. Disable `-Wnonportable-include-path` for executable dex in dex.cabal. I am not sure caused this issue to surface. The same issue previously occurred for other targets in dex.cabal. Workaround suggested by discussion: https://github.com/haskell/cabal/issues/4739#issuecomment-359209133 --- dex.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dex.cabal b/dex.cabal index be781045d..5a639a818 100644 --- a/dex.cabal +++ b/dex.cabal @@ -85,7 +85,7 @@ executable dex default-language: Haskell2010 hs-source-dirs: src default-extensions: CPP, LambdaCase, BlockArguments - ghc-options: -threaded + ghc-options: -threaded -optP-Wno-nonportable-include-path if flag(optimized) ghc-options: -O3 else