Skip to content

Commit 35db2f7

Browse files
committed
toolchain option search_path_ccp_headers can be None in unit tests
1 parent 96b020e commit 35db2f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easybuild/tools/toolchain/toolchain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,9 +1092,9 @@ def _add_dependency_cpp_headers(self, dep_root, extra_dirs=None):
10921092

10931093
# mode of operation is defined by search-path-cpp-headers option
10941094
# toolchain option has precedence over build option
1095-
cpp_headers_mode = SEARCH_PATH_CPP_HEADERS
1095+
cpp_headers_mode = DEFAULT_SEARCH_PATH_CPP_HEADERS
10961096
tc_opt = self.options.option("search-path-cpp-headers")
1097-
if tc_opt is not False:
1097+
if tc_opt:
10981098
cpp_headers_mode = tc_opt
10991099
self.log.debug("search-path-cpp-headers set by toolchain option: %s", cpp_headers_mode)
11001100
else:

0 commit comments

Comments
 (0)