aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-11-26 21:57:54 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-11-26 21:57:54 +0300
commit69f26f60cceae86bbd6d8b0b3013ef5153c6f666 (patch)
tree1db5c3623bb0dc532f0f3138d59ac4eb71dd7ee6
parent416225489cf7dc528693468d638b8d57838f75ad (diff)
Use switch in buildfile
-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.
#