From d5d3b1baafaa45ceefd801706d876b742e03e076 Mon Sep 17 00:00:00 2001 From: Vilius Sutkus '89 Date: Sun, 16 Jun 2024 10:52:45 +0300 Subject: [PATCH] python syntax update --- recipes/libiconv/all/conanfile.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes/libiconv/all/conanfile.py b/recipes/libiconv/all/conanfile.py index fdbbbf1..71b1aae 100644 --- a/recipes/libiconv/all/conanfile.py +++ b/recipes/libiconv/all/conanfile.py @@ -143,11 +143,13 @@ def generate(self): }[self.settings.get_safe("arch")] api_level = self.settings.os.get_safe("api_level") print(self.settings_build.os) - build_machine = "{}-x86_64".format({ + build_os = { "Linux": "linux", "Macos": "darwin", "Windows": "windows", - }[self.settings_build.os]) + }[self.settings_build.os] + print(build_os) + build_machine = "{}-x86_64".format(build_os) toolchain = os.path.join(android_ndk_home, "toolchains", "llvm", "prebuilt", build_machine, "bin")