diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-11-26 21:51:50 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-11-26 21:51:50 +0300 |
commit | 4f5e6f8bdaf335ef3d3881f5ef175128de97d6ea (patch) | |
tree | ec57c42c76543c982910f75c68bf7221b1ddd6c4 | |
parent | 7a90996d1751ca321242e45de7f1c913126b32e6 (diff) |
Use switch in buildfile
-rw-r--r-- | bpkg/buildfile | 12 |
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. # |