From 4b3c1e6a9a4065b400829c86859bc3f7376726fe Mon Sep 17 00:00:00 2001 From: joe Date: Mon, 1 Jul 2013 03:25:05 -0400 Subject: Updated explanation for -DNOUTMP. --- Presence/main.hs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Presence/main.hs b/Presence/main.hs index 9a09b855..816d1537 100644 --- a/Presence/main.hs +++ b/Presence/main.hs @@ -15,14 +15,17 @@ import ConfigFiles import System.INotify #ifndef NOUTMP import UTmp --- Breaks profiling build with error: +-- UTmp is inconvenient for the profiling build due to Template Haskell +-- causing ghc to report: +-- -- Dynamic linking required, but this is a non-standard build (eg. prof). -- You need to build the program twice: once the normal way, and then -- in the desired way using -osuf to set the object file suffix. -- --- TODO: Figure out wtf ghc is trying to tell me. --- In the mean time, use -DNOTMP to build for profiling. --- +-- ... so -DNOUTMP was introduced to remove TemplateHaskell from the build. +-- However, a full-featured profiling build can be built using the bp +-- script which makes a non-profiling binary available during the build in +-- the manner in which the error message attempted (and failed) to communicate. #endif import FGConsole #ifdef HAXML -- cgit v1.2.3