From d0cc71368bbedfcf6a79c2d902341acd5430af1d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 31 May 2017 16:40:10 +0200 Subject: Fix bug in compiler language selection (-x option) --- build2/cc/compile.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'build2') 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"); -- cgit v1.1