|
|
|
|
|
|
|
|
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"}}, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|