Skip to content

Commit

Permalink
Merge pull request #892 from tweag/profiling_objects
Browse files Browse the repository at this point in the history
Drop non-profiling inputs to profiling build
  • Loading branch information
aherrmann authored May 24, 2019
2 parents 647ddc8 + c4f7c57 commit ad7e2af
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions haskell/private/haskell_impl.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,7 @@ def _haskell_binary_common_impl(ctx, is_test):
srcs = srcs_files,
ls_modules = ctx.executable._ls_modules,
import_dir_map = import_dir_map,
# NOTE We must make the object files compiled without profiling
# available to this step for TH to work, presumably because GHC is
# linked against RTS without profiling.
extra_srcs = depset(transitive = [
depset(ctx.files.extra_srcs),
depset([c.objects_dir]),
]),
extra_srcs = depset(ctx.files.extra_srcs),
user_compile_flags = ctx.attr.compiler_flags,
# NOTE We can't have profiling and dynamic code at the
# same time, see:
Expand Down Expand Up @@ -369,13 +363,7 @@ def haskell_library_impl(ctx):
plugin_dep_info,
srcs = srcs_files,
import_dir_map = import_dir_map,
# NOTE We must make the object files compiled without profiling
# available to this step for TH to work, presumably because GHC is
# linked against RTS without profiling.
extra_srcs = depset(transitive = [
depset(ctx.files.extra_srcs),
depset([c.objects_dir]),
]),
extra_srcs = depset(ctx.files.extra_srcs),
user_compile_flags = ctx.attr.compiler_flags,
# NOTE We can't have profiling and dynamic code at the
# same time, see:
Expand Down

0 comments on commit ad7e2af

Please sign in to comment.