Browse Source

add support for gnu99 C-language variant

main
John Robinson 3 years ago
parent
commit
dc93b65cb5
No known key found for this signature in database
2 changed files with 6 additions and 0 deletions
  1. +1
    -0
      res/toolchain-schema.json
  2. +5
    -0
      src/dds/toolchain/from_json.cpp

+ 1
- 0
res/toolchain-schema.json View File

"c99", "c99",
"c11", "c11",
"c18", "c18",
"gnu99",
"gnu18" "gnu18"
] ]
}, },

+ 5
- 0
src/dds/toolchain/from_json.cpp View File

c99, c99,
c11, c11,
c18, c18,
gnu99,
gnu18, gnu18,
} c_version_e } c_version_e
= [&] { = [&] {
return c11; return c11;
} else if (c_version == "c18") { } else if (c_version == "c18") {
return c18; return c18;
} else if (c_version == "gnu99") {
return gnu99;
} else if (c_version == "gnu18") { } else if (c_version == "gnu18") {
return gnu18; return gnu18;
} else { } else {
{{gnu, c99}, {"-std=c99"}}, {{gnu, c99}, {"-std=c99"}},
{{gnu, c11}, {"-std=c11"}}, {{gnu, c11}, {"-std=c11"}},
{{gnu, c18}, {"-std=c18"}}, {{gnu, c18}, {"-std=c18"}},
{{gnu, gnu99}, {"-std=gnu99"}},
{{gnu, gnu18}, {"-std=gnu18"}}, {{gnu, gnu18}, {"-std=gnu18"}},
{{clang, c_none}, {}}, {{clang, c_none}, {}},
{{clang, c89}, {"-std=c89"}}, {{clang, c89}, {"-std=c89"}},
{{clang, c99}, {"-std=c99"}}, {{clang, c99}, {"-std=c99"}},
{{clang, c11}, {"-std=c11"}}, {{clang, c11}, {"-std=c11"}},
{{clang, c18}, {"-std=c18"}}, {{clang, c18}, {"-std=c18"}},
{{clang, gnu99}, {"-std=gnu99"}},
{{clang, gnu18}, {"-std=gnu18"}}, {{clang, gnu18}, {"-std=gnu18"}},
}; };



Loading…
Cancel
Save