Please sign in to comment.
CabalTranslation.hs: optional profiling flag if the user defines it
The problem: Some Arch Haskell developers rely on profiling their programs, which in turn rely on certain Haskell AUR packages. Previously, these packages did not have profiling enabled in their PKGBUILDs, which meant that those who wanted profiling had to rebuild all packages in the dependency chain that did not have profiling enabled. The solution: This one-liner simply adds in a Bash conditional statement into the default PKGBUILD for haskell library programs. The statement depends on the new $PKGBUILD_HASKELL_ENABLE_PROFILING variable having a value "1". E.g., "export PKGBUILD_HASKELL_ENABLE_PROFILING=1". An Arch Haskell user can now export this variable in his ~/.bashrc or somewhere else, which will trigger the conditional statement to enable profiling. This way, only those users who want profiling will get it, and it will not affect anyone who does not care about profiling.
- Loading branch information...
Showing with 1 addition and 1 deletion.