Skip to content

Commit

Permalink
account for missing case
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Moors committed Aug 17, 2023
1 parent eb0ee64 commit 25a66f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions easybuild/easyblocks/o/opencv.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,11 @@ def configure_step(self):
elif isinstance(optarch, str):
optarch_detect = optimal_arch_option in optarch
elif isinstance(optarch, dict):
gcc_detect = get_software_root('GCC') and optimal_arch_option in optarch.get('GCC', '')
optarch_gcc = optarch.get('GCC')
optarch_intel = optarch.get('Intel')
gcc_detect = get_software_root('GCC') and (not optarch_gcc or optimal_arch_option in optarch_gcc)
intel_root = get_software_root('iccifort') or get_software_root('intel-compilers')
intel_detect = intel_root and optimal_arch_option in optarch.get('Intel', '')
intel_detect = intel_root and (not optarch_intel or optimal_arch_option in optarch_intel)
optarch_detect = gcc_detect or intel_detect

if optarch_detect:
Expand Down

0 comments on commit 25a66f0

Please sign in to comment.