Skip to content

stack build/test/bench --profile should recompile if previous compile was without --profile #2984

@juliapath

Description

@juliapath

If you build without --profile and then with stack doesn't recompile the second time to create a binary with profiling options if no files have changed. This is in opposition to ghc behaviour. If you build without -prof and then with, ghc will recompile the second time even if no files changed.

Steps to reproduce

For example:

  1. Run command stack clean && stack build.
  2. Run command stack build --profile.

Expected

Stack builds two times, first without profiling options and then another time with.

Actual

Stack builds only once without profiling. It ignores the second build instruction because no files changed.

Stack version

$ stack --version
Version 1.3.2 x86_64

Method of installation

  • ArchLinux package community/stack.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions