commit d1ba0f13fc50033002a28370dbb88a004e64c645
parent cff3978264d31bf45b063e144875fa8daa25eff8
Author: Jared Tobin <jared@jtobin.io>
Date: Sat, 31 Oct 2026 14:15:00 +0400
merge impl/darwin: the executable built on darwin
Setup builds the executable in dist/build/vestigia, which a
case-insensitive filesystem merges with the library's
dist/build/Vestigia. Clang's preprocessor flagged the case mismatch
in Paths_vestigia's include path, and -Werror made it fatal, so the
flake failed to build on darwin. The executable now passes
-Wno-nonportable-include-path to the preprocessor on darwin only.
Tested on aarch64-darwin: the flake builds and all 46 tests pass.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/vestigia.cabal b/vestigia.cabal
@@ -55,6 +55,11 @@ executable vestigia
main-is: Main.hs
ghc-options:
-Wall -Werror -rtsopts
+ -- Setup builds this in dist/build/vestigia, which a case-insensitive
+ -- filesystem merges with the library's dist/build/Vestigia; clang's
+ -- preprocessor flags the case mismatch, and -Werror makes it fatal
+ if os(osx)
+ ghc-options: -optP-Wno-nonportable-include-path
other-modules:
Paths_vestigia
autogen-modules: