@@ -50,8 +50,8 @@ using LCompilers::endswith;
50
50
using LCompilers::CompilerOptions;
51
51
using LCompilers::LPython::parse_python_file;
52
52
53
- enum Backend {
54
- llvm, cpp, x86, wasm, wasm_x86, wasm_x64
53
+ enum class Backend {
54
+ llvm, cpp, c, x86, wasm, wasm_x86, wasm_x64
55
55
};
56
56
57
57
std::string remove_extension (const std::string& filename) {
@@ -1534,6 +1534,8 @@ int main(int argc, char *argv[])
1534
1534
1535
1535
if (arg_backend == " llvm" ) {
1536
1536
backend = Backend::llvm;
1537
+ } else if (arg_backend == " c" ) {
1538
+ backend = Backend::c;
1537
1539
} else if (arg_backend == " cpp" ) {
1538
1540
backend = Backend::cpp;
1539
1541
} else if (arg_backend == " x86" ) {
@@ -1545,7 +1547,7 @@ int main(int argc, char *argv[])
1545
1547
} else if (arg_backend == " wasm_x64" ) {
1546
1548
backend = Backend::wasm_x64;
1547
1549
} else {
1548
- std::cerr << " The backend must be one of: llvm, cpp, x86, wasm, wasm_x86, wasm_x64." << std::endl;
1550
+ std::cerr << " The backend must be one of: llvm, c, cpp, x86, wasm, wasm_x86, wasm_x64." << std::endl;
1549
1551
return 1 ;
1550
1552
}
1551
1553
0 commit comments