aboutsummaryrefslogtreecommitdiff
path: root/build2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-31 16:40:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-31 16:40:10 +0200
commitd0cc71368bbedfcf6a79c2d902341acd5430af1d (patch)
tree79e6b0e776677a385dad4ca0b0b2ba065fb54f8e /build2
parent9ae4897cfe935598333a5f709e967fefc4c161aa (diff)
Fix bug in compiler language selection (-x option)
Diffstat (limited to 'build2')
-rw-r--r--build2/cc/compile.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx
index e5f23c4..47464ae 100644
--- a/build2/cc/compile.cxx
+++ b/build2/cc/compile.cxx
@@ -2122,8 +2122,8 @@ namespace build2
const char* l (nullptr);
switch (x_lang)
{
- case lang::c: l = "c";
- case lang::cxx: l = "c++";
+ case lang::c: l = "c"; break;
+ case lang::cxx: l = "c++"; break;
}
args.push_back ("-x");
@@ -2462,8 +2462,8 @@ namespace build2
const char* l (nullptr);
switch (x_lang)
{
- case lang::c: l = "cpp-output";
- case lang::cxx: l = "c++-cpp-output";
+ case lang::c: l = "cpp-output"; break;
+ case lang::cxx: l = "c++-cpp-output"; break;
}
args.push_back ("-x");
@@ -2519,8 +2519,8 @@ namespace build2
const char* l (nullptr);
switch (x_lang)
{
- case lang::c: l = "c";
- case lang::cxx: l = "c++";
+ case lang::c: l = "c"; break;
+ case lang::cxx: l = "c++"; break;
}
args.push_back ("-x");