Skip to content
Snippets Groups Projects
Commit 876c5f9e authored by Amir Mohammad Saied's avatar Amir Mohammad Saied
Browse files

Print the build profile in one line

parent f59787fe
No related branches found
No related tags found
No related merge requests found
Showing
with 26 additions and 66 deletions
......@@ -762,9 +762,10 @@ printPlan verbosity
showMonitorChangedReason MonitorFirstRun = "first run"
showMonitorChangedReason MonitorCorruptCache = "cannot read state cache"
showBuildProfile = "Build profile:\n" ++ (unlines [
" with-compiler: " ++ (showCompilerId . pkgConfigCompiler) elaboratedShared,
" optimization: " ++ (show (fromMaybe NormalOptimisation (Setup.flagToMaybe packageConfigOptimization)))])
showBuildProfile = "Build profile: " ++ (intercalate ", " [
"with-compiler: " ++ (showCompilerId . pkgConfigCompiler) elaboratedShared,
"optimization: " ++ (show (fromMaybe NormalOptimisation (Setup.flagToMaybe packageConfigOptimization)))]
) ++ "\n"
-- | If there are build failures then report them and throw an exception.
--
......
# cabal new-build
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- InternalLibrary1-0.1 (exe:lemon) (first run)
Configuring InternalLibrary1-0.1...
......
......@@ -2,9 +2,7 @@
Downloading the latest package list from test-local-repo
# cabal new-build
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- pkg-1.0 (exe:my-exe) (first run)
Configuring pkg-1.0...
......
# cabal new-build
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- pre-proc-999.999.999 (exe:zero-to-one) (first run)
- client-0.1.0.0 (exe:hello-world) (first run)
......
# cabal new-build
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- happy-999.999.999 (exe:happy) (first run)
- client-0.1.0.0 (exe:hello-world) (first run)
......
# cabal new-build
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- foo-0.1.0.0 (exe:my-cpp) (first run)
- foo-0.1.0.0 (lib) (first run)
......
# cabal new-build
Resolving dependencies...
Build profile: with-compiler: ghc-<GHCVER>, optimization: NormalOptimisation
In order, the following will be built:
- plain-0.1.0.0 (lib:plain) (first run)
cabal: Failed to build plain-0.1.0.0-inplace. The failure occurred during the configure step. The build process segfaulted (i.e. SIGSEGV).
# cabal new-build
Warning: <ROOT>/custom-setup-without-cabal.cabal: This package requires at least Cabal version 99999
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- custom-setup-without-cabal-1.0 (lib:custom-setup-without-cabal) (first run)
# cabal new-build
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- custom-setup-without-cabal-defaultMain-1.0 (lib:custom-setup-without-cabal-defaultMain) (first run)
# cabal new-build
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- my-0.1 (exe:my-executable) (first run)
Configuring my-0.1...
......
# cabal new-build
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- my-0.1 (exe:my-executable) (first run)
Configuring executable 'my-executable' for my-0.1..
......
# cabal new-build
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- p-0.1.0.0 (lib:q) (first run)
- p-0.1.0.0 (exe:foo) (first run)
......
# cabal new-build
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- q-0.1.0.0 (exe:q) (first run)
Configuring executable 'q' for q-0.1.0.0..
......@@ -10,9 +8,7 @@ Preprocessing executable 'q' for q-0.1.0.0..
Building executable 'q' for q-0.1.0.0..
# cabal new-build
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- p-1.0 (lib) (first run)
- q-0.1.0.0 (exe:q) (configuration changed)
......
# cabal new-build
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- p-1.0 (lib) --enable-library-profiling (first run)
- q-1.0 (exe:q) --enable-profiling (first run)
......
# cabal new-build
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- p-1.0 (lib) (first run)
- q-1.0 (lib) (first run)
......
# cabal new-build
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- p-1.0 (lib) (first run)
- q-1.0 (lib) (first run)
......
# cabal new-configure
'cabal.project.local' file already exists. Now overwriting it.
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following would be built:
- NewConfigure-0.1.0.0 (lib) (first run)
# cabal new-build
Warning: <ROOT>/custom-setup/custom-setup.cabal: This package requires at least Cabal version 99999
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- Cabal-99999 (lib:Cabal) (first run)
- custom-setup-1.0 (lib:custom-setup) (first run)
......
......@@ -2,9 +2,7 @@
Downloading the latest package list from test-local-repo
# cabal new-build
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following would be built:
- Cabal-99999 (lib) (requires download & build)
- time-99999 (lib:time) (first run)
# cabal new-build
Resolving dependencies...
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- p-1.0 (lib) (first run)
- q-1.0 (exe:qexe) (first run)
......@@ -13,17 +11,13 @@ Configuring executable 'qexe' for q-1.0..
Preprocessing executable 'qexe' for q-1.0..
Building executable 'qexe' for q-1.0..
# cabal new-build
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- p-1.0 (lib) (file P.hs changed)
Preprocessing library for p-1.0..
Building library for p-1.0..
# cabal new-build
Build profile:
with-compiler: ghc-<GHCVER>
optimization: NormalOptimisation
Build profile: with-compiler: ghc-<GHCVER>, optimization: MaximumOptimisation
In order, the following will be built:
- q-1.0 (exe:qexe) (file <ROOT>/cabal.dist/work/dist/build/<ARCH>/ghc-<GHCVER>/p-1.0/cache/build changed)
Preprocessing executable 'qexe' for q-1.0..
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment