Skip to content

Commit 04cd138

Browse files
committed
cabal: Always process package config files
Drop the check for `libraries != []` in the check for processing the package config file. Haskell supports empty libraries. In order for Bazel to support them, we need to process the package config, even for empty libraries.
1 parent 4bd3125 commit 04cd138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haskell/private/cabal_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def make_relative_to_pkgroot(matchobj):
394394
line = re.sub(re.escape(cfg_execroot) + r'\S*', make_relative_to_pkgroot, line)
395395
return line
396396

397-
if libraries != [] and os.path.isfile(package_conf_file):
397+
if os.path.isfile(package_conf_file):
398398
for lib in libraries:
399399
os.rename(lib, os.path.join(dynlibdir, os.path.basename(lib)))
400400

0 commit comments

Comments
 (0)