aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bdep/buildfile12
1 files changed, 8 insertions, 4 deletions
diff --git a/bdep/buildfile b/bdep/buildfile
index 7828fa6..0c300a7 100644
--- a/bdep/buildfile
+++ b/bdep/buildfile
@@ -84,10 +84,14 @@ if $build.version.stage
# 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
+}
# Make sure backtrace includes function names.
#