瀏覽代碼

Capital `C` in language versions

default_compile_flags
vector-of-bool 5 年之前
父節點
當前提交
3f3207c29a
共有 2 個檔案被更改,包括 11 行新增12 行删除
  1. +10
    -11
      src/dds/toolchain/from_dds.cpp
  2. +1
    -1
      tools/msvc.dds

+ 10
- 11
src/dds/toolchain/from_dds.cpp 查看文件

@@ -29,7 +29,6 @@ toolchain dds::parse_toolchain_dds(strv str, strv context) {
}

namespace {

struct read_argv_acc {
strv my_key;
opt_str_seq& out;
@@ -203,13 +202,13 @@ toolchain dds::parse_toolchain_dds(const lm::pair_list& pairs, strv context) {
= [&] {
if (!c_version) {
return c_none;
} else if (c_version == "c89") {
} else if (c_version == "C89") {
return c89;
} else if (c_version == "c99") {
} else if (c_version == "C99") {
return c99;
} else if (c_version == "c11") {
} else if (c_version == "C11") {
return c11;
} else if (c_version == "c18") {
} else if (c_version == "C18") {
return c18;
} else {
fail(context, "Unknown C-Version '{}'", *c_version);
@@ -228,17 +227,17 @@ toolchain dds::parse_toolchain_dds(const lm::pair_list& pairs, strv context) {
= [&] {
if (!cxx_version) {
return cxx_none;
} else if (cxx_version == "c++98") {
} else if (cxx_version == "C++98") {
return cxx98;
} else if (cxx_version == "c++03") {
} else if (cxx_version == "C++03") {
return cxx03;
} else if (cxx_version == "c++11") {
} else if (cxx_version == "C++11") {
return cxx11;
} else if (cxx_version == "c++14") {
} else if (cxx_version == "C++14") {
return cxx14;
} else if (cxx_version == "c++17") {
} else if (cxx_version == "C++17") {
return cxx17;
} else if (cxx_version == "c++20") {
} else if (cxx_version == "C++20") {
return cxx20;
} else {
fail(context, "Unknown C++-Version '{}'", *cxx_version);

+ 1
- 1
tools/msvc.dds 查看文件

@@ -1,3 +1,3 @@
Compiler-ID: MSVC
C++-Version: c++17
C++-Version: C++17
Flags: /experimental:preprocessor

Loading…
取消
儲存