We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
configopts
1 parent 5bf4ceb commit 87e93e1Copy full SHA for 87e93e1
easybuild/easyblocks/l/llvm.py
@@ -1032,7 +1032,10 @@ def add_cmake_opts(self):
1032
"""Add LLVM-specific CMake options."""
1033
base_opts = self._cfgopts.copy()
1034
for k, v in self._cmakeopts.items():
1035
- base_opts.append('-D%s=%s' % (k, v))
+ opt_start = f'-D{k}='
1036
+ # Don't overwrite e.g. user settings
1037
+ if not any(opt.startswith(opt_start) for opt in base_opts):
1038
+ base_opts.append(f'-D{k}={v}')
1039
self.cfg['configopts'] = ' '.join(base_opts)
1040
1041
def configure_step2(self):
0 commit comments