From 5e8f82e436c03e1c59e69d5c9eb0e5a14284dd87 Mon Sep 17 00:00:00 2001 From: joe Date: Sun, 12 Nov 2017 20:35:00 -0500 Subject: We no longer require root. (ConsoleWriter is disabled without). --- p | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'p') diff --git a/p b/p index 63dee6c2..1ed6e374 100755 --- a/p +++ b/p @@ -1,14 +1,28 @@ #!/bin/bash -args="-rtsopts -osuf -prof pf -fprof-auto -fprof-auto-exported" +warn="-freverse-errors -fwarn-unused-imports -Wmissing-signatures -fdefer-typed-holes" +exts="-XOverloadedStrings -XRecordWildCards" +defs="-DBENCODE_AESON -DTHREAD_DEBUG" +hide="-hide-package crypto-random -hide-package crypto-api -hide-package crypto-numbers -hide-package cryptohash -hide-package prettyclass" +opts="-rtsopts -hisuf p_hi -osuf p_o -prof -fprof-auto -fprof-auto-exported" root=${0%/*} cd "$root" me=${0##*/} me=${me%.*} +set -x ghc \ + $opts \ + $hide \ + $exts \ + $defs \ -hidir build/$me -odir build/$me \ - -iPresence \ + -iPresence \ -iArchive \ - $args \ + -isrc \ + -icryptonite-backport \ + build/b/Presence/monitortty.o \ + build/b/cbits/cryptonite_salsa.o \ + build/b/cbits/cryptonite_xsalsa.o\ + $warn \ "$@" -- cgit v1.2.3