<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear Cafe,<div class=""><br class=""></div><div class="">I'm not sure it is a bug or just designed behavior? But I can't install profiling-enabled exe with cabal 3.2.0.0, while direct running works correctly.</div><div class=""><br class=""></div><div class=""><div class="">$ cabal --version</div><div class="">cabal-install version 3.2.0.0</div><div class="">compiled using version 3.2.0.0 of the Cabal library </div><div class="">$<span style="background-color: rgb(28, 149, 255);" class=""> cabal run </span>--enable-profiling --enable-executable-profiling exe:els -- +RTS --info</div><div class="">Up to date</div><div class=""> [("GHC RTS", "YES")</div><div class=""> ,("GHC version", "8.8.4")</div><div class=""><span style="background-color: rgb(139, 224, 70);" class=""> ,("RTS way", "rts_thr_p")</span></div><div class=""> ,("Build platform", "x86_64-apple-darwin")</div><div class=""> ,("Build architecture", "x86_64")</div><div class=""> ,("Build OS", "darwin")</div><div class=""> ,("Build vendor", "apple")</div><div class=""> ,("Host platform", "x86_64-apple-darwin")</div><div class=""> ,("Host architecture", "x86_64")</div><div class=""> ,("Host OS", "darwin")</div><div class=""> ,("Host vendor", "apple")</div><div class=""> ,("Target platform", "x86_64-apple-darwin")</div><div class=""> ,("Target architecture", "x86_64")</div><div class=""> ,("Target OS", "darwin")</div><div class=""> ,("Target vendor", "apple")</div><div class=""> ,("Word size", "64")</div><div class=""> ,("Compiler unregisterised", "NO")</div><div class=""> ,("Tables next to code", "YES")</div><div class=""> ,("Flag -with-rtsopts", "-maxN31 -qg")</div><div class=""> ]</div><div class="">$<span style="background-color: rgb(64, 255, 255);" class=""> cabal install </span>--enable-profiling --overwrite-policy=always --enable-executable-profiling exe:els && els +RTS --info </div><div class="">Wrote tarball sdist to</div><div class=""> ...</div><div class="">Resolving dependencies...</div><div class="">Up to date</div><div class="">Copying 'els'</div><div class=""> [("GHC RTS", "YES")</div><div class=""> ,("GHC version", "8.8.4")</div><div class=""><span style="background-color: rgb(255, 218, 0);" class=""> ,("RTS way", "rts_thr")</span></div><div class=""> ,("Build platform", "x86_64-apple-darwin")</div><div class=""> ,("Build architecture", "x86_64")</div><div class=""> ,("Build OS", "darwin")</div><div class=""> ,("Build vendor", "apple")</div><div class=""> ,("Host platform", "x86_64-apple-darwin")</div><div class=""> ,("Host architecture", "x86_64")</div><div class=""> ,("Host OS", "darwin")</div><div class=""> ,("Host vendor", "apple")</div><div class=""> ,("Target platform", "x86_64-apple-darwin")</div><div class=""> ,("Target architecture", "x86_64")</div><div class=""> ,("Target OS", "darwin")</div><div class=""> ,("Target vendor", "apple")</div><div class=""> ,("Word size", "64")</div><div class=""> ,("Compiler unregisterised", "NO")</div><div class=""> ,("Tables next to code", "YES")</div><div class=""> ,("Flag -with-rtsopts", "-maxN31 -qg")</div><div class=""> ]</div><div class="">$ cabal install --enable-profiling --overwrite-policy=always --enable-executable-profiling exe:els && els +RTS -p </div><div class="">Wrote tarball sdist to</div><div class=""> ...</div><div class="">Resolving dependencies...</div><div class="">Up to date</div><div class="">Copying 'els'</div><div class=""><span style="background-color: rgb(255, 40, 0);" class="">els: the flag -p requires the program to be built with -prof</span></div><div class="">els: </div><div class="">els: Usage: <prog> <args> [+RTS <rtsopts> | -RTS <args>] ... --RTS <args></div><div class="">els: ...</div></div><div class=""><br class=""></div><div class="">Is there other options to get a profiling enabled exe installed?</div><div class=""><br class=""></div><div class="">Thanks with regards,</div><div class="">Compl</div><div class=""><br class=""></div></body></html>