aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-11-30 03:11:35 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-11-30 03:11:35 +0300
commita18413342bc088e10a56ff70dca8f3007a83085d (patch)
treef52c8d15f6feaa6d62755601ca1b11fb419f4452
parentd602d2f7619f7069e5669e4a9231d800e4e41d99 (diff)
Use compiler class instead of id where appropriate
-rw-r--r--libpkgconf/buildfile5
1 files 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