on master help sign in
Hand off profiling to reflex-platform

this allows also projects to build with profiling and not just obelisk pkgs

commitf4d00405c73eccb761b3b40bbe99dec8c52f0860 authorLuigy Leon <luigy.leon@obsidian.systems> dateTue 16 Oct 2018, 23:31 (8 years ago) parent835cc6c
1 file changed+1−5
default.nix+1−5
default.nix+1−5
@@ -3,7 +3,7 @@
33, iosSdkVersion ? "10.2"
44}:
55let
6− getReflexPlatform = sys: import ./dep/reflex-platform { inherit iosSdkVersion; system = sys; };
6+ getReflexPlatform = sys: import ./dep/reflex-platform { inherit iosSdkVersion; system = sys; enableLibraryProfiling = profiling; };
77 reflex-platform = getReflexPlatform system;
88 inherit (reflex-platform) hackGet nixpkgs;
99 pkgs = nixpkgs;
@@ -48,10 +48,6 @@ let
4848 # The haskell environment used to build Obelisk itself, e.g. the 'ob' command
4949 ghcObelisk = reflex-platform.ghc.override {
5050 overrides = composeExtensions defaultHaskellOverrides (self: super: {
51− mkDerivation = args: super.mkDerivation (args // {
52− enableLibraryProfiling = profiling;
53− });
54−
5551 # Dynamic linking with split objects dramatically increases startup time (about 0.5 seconds on a decent machine with SSD)
5652 obelisk-command = addOptparseApplicativeCompletionScripts "ob" (justStaticExecutables' super.obelisk-command);
5753 });