aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-11-30 05:12:04 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-11-30 05:12:04 +0300
commit8591cc8eea72780c1ad5b08902f5f47ff37db41c (patch)
tree076f812bb14bbe758319e5047661eaf821468f6d
parent38f36577b08d0d5b40c9aec88d8fd8595e1f72d4 (diff)
Use compiler class instead of id where appropriate
-rw-r--r--bpkg/buildfile4
1 files changed, 2 insertions, 2 deletions
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'"'