aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/buildfile12
1 files changed, 8 insertions, 4 deletions
diff --git a/bpkg/buildfile b/bpkg/buildfile
index ca3cdb9..4814720 100644
--- a/bpkg/buildfile
+++ b/bpkg/buildfile
@@ -85,10 +85,14 @@ for t: cxx{**.test...}
#
# Disable "unknown pragma" warnings.
#
-if ($cxx.class == 'msvc')
- cxx.coptions += /wd4068
-elif ($cxx.class == 'gcc')
- cxx.coptions += -Wno-unknown-pragmas
+switch $cxx.class
+{
+ case 'msvc'
+ cxx.coptions += /wd4068
+
+ case 'gcc'
+ cxx.coptions += -Wno-unknown-pragmas
+}
# VC14 has issues with decorating long names.
#