From 8591cc8eea72780c1ad5b08902f5f47ff37db41c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 30 Nov 2017 05:12:04 +0300 Subject: Use compiler class instead of id where appropriate --- bpkg/buildfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bpkg/buildfile') diff --git a/bpkg/buildfile b/bpkg/buildfile index edf3412..0db45c6 100644 --- a/bpkg/buildfile +++ b/bpkg/buildfile @@ -51,9 +51,9 @@ hxx{version}: in{version} $src_root/file{manifest} # Disable "unknown pragma" warnings. # -if ($cxx.id == "msvc") +if ($cxx.class == 'msvc') cxx.coptions += /wd4068 -else +elif ($cxx.class == 'gcc') cxx.coptions += -Wno-unknown-pragmas obj{utility}: cxx.poptions += -DBPKG_EXE_SUFFIX='"'$bin.exe.suffix'"' -- cgit v1.1