Skip to content

Commit

Permalink
handle pkgname = None case
Browse files Browse the repository at this point in the history
  • Loading branch information
wavewave committed Nov 6, 2024
1 parent 5812aa1 commit 9112868
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion haskell/compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,10 @@ def _common_compile_module_args(
direct_deps_info: list[HaskellLibraryInfoTSet],
pkgname: str | None = None,
) -> CommonCompileModuleArgs:

command = cmd_args(ghc_wrapper)
command.add("--ghc", haskell_toolchain.compiler)
if haskell_toolchain.use_persistent_workers:
if haskell_toolchain.use_persistent_workers and pkgname:
worker_target_id = pkgname
command.add("--worker-target-id", worker_target_id)
# Some rules pass in RTS (e.g. `+RTS ... -RTS`) options for GHC, which can't
Expand Down

0 comments on commit 9112868

Please sign in to comment.