From a18413342bc088e10a56ff70dca8f3007a83085d Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 30 Nov 2017 03:11:35 +0300 Subject: Use compiler class instead of id where appropriate --- libpkgconf/buildfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libpkgconf/buildfile b/libpkgconf/buildfile index a2f9427..c95d201 100644 --- a/libpkgconf/buildfile +++ b/libpkgconf/buildfile @@ -17,7 +17,6 @@ else h{version}: in{version} $src_root/file{manifest} tclass = $c.target.class -tsys = $c.target.system # Define the PKG_DEFAULT_PATH, SYSTEM_INCLUDEDIR and SYSTEM_LIBDIR macros. # The whole idea feels utterly broken (hello cross-compilation) so we will @@ -58,7 +57,7 @@ c.poptions += -DPKG_DEFAULT_PATH=\"$def_dirs\" \ # Disable warnings. # -if ($tsys == "win32-msvc") +if ($c.class == 'msvc') c.coptions += /wd4996 /wd4267 if ($tclass == "windows") @@ -68,7 +67,7 @@ if ($tclass == "windows") objs{*}: c.poptions += -DLIBPKGCONF_EXPORT obja{*}: c.poptions += -DPKGCONFIG_IS_STATIC - if ($tsys == "mingw32") + if ($c.target.system == "mingw32") c.libs += -ladvapi32 else c.libs += advapi32.lib -- cgit v1.1