From be0b110e862dcf6e6aa1845e0f6e575c9f1a6561 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 27 Nov 2017 13:12:57 +0200 Subject: Use compiler class instead of id where appropriate --- mysql/buildfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mysql') diff --git a/mysql/buildfile b/mysql/buildfile index 21d1a68..dfd433e 100644 --- a/mysql/buildfile +++ b/mysql/buildfile @@ -185,13 +185,13 @@ zlib_poptions = "-I$src_base/zlib" plugins/: c.poptions =+ $mariadb_poptions libmariadb/: c.poptions =+ $mariadb_poptions $zlib_poptions -if ($tsys == 'win32-msvc') +if ($c.class == 'msvc') { # Disable warnings that pop up with /W3. # c.coptions += /wd4996 /wd4267 } -else +elif ($c.class == 'gcc') { # Disable all warnings. Upstream doesn't seem to care about these and it is # not easy to disable specific warnings in a way that works across -- cgit v1.1