Skip to content

Commit a90fbd2

Browse files
committed
Check configuration type
Signed-off-by: Uilian Ries <[email protected]>
1 parent 87a6b88 commit a90fbd2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

conan/tools/gnu/autotoolstoolchain.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ def __init__(self, conanfile, namespace=None, prefix="/"):
8383
sysroot = self._conanfile.conf.get("tools.build:sysroot")
8484
sysroot = sysroot.replace("\\", "/") if sysroot is not None else None
8585
self.sysroot_flag = "--sysroot {}".format(sysroot) if sysroot else None
86-
extra_configure_args = self._conanfile.conf.get("tools.gnu:extra_configure_args", default=[])
86+
extra_configure_args = self._conanfile.conf.get("tools.gnu:extra_configure_args",
87+
check_type=list,
88+
default=[])
8789

8890
self.configure_args = (self._default_configure_shared_flags() +
8991
self._default_configure_install_flags() +

conan/tools/gnu/gnutoolchain.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ def __init__(self, conanfile, namespace=None, prefix="/"):
6262
self.fpic = self._conanfile.options.get_safe("fPIC")
6363
self.msvc_runtime_flag = self._get_msvc_runtime_flag()
6464
self.msvc_extra_flags = self._msvc_extra_flags()
65-
extra_configure_args = self._conanfile.conf.get("tools.gnu:extra_configure_args", default=[])
65+
extra_configure_args = self._conanfile.conf.get("tools.gnu:extra_configure_args",
66+
check_type=list,
67+
default=[])
6668
extra_configure_args = {it: None for it in extra_configure_args}
6769

6870
# Host/Build triplets

0 commit comments

Comments
 (0)