summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 21575f00..2a5744c2 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -726,6 +726,9 @@ ProgramParams::ProgramParams(int argc, char *argv[])
if( strcmp(type_str, "rlib") == 0 ) {
this->crate_type = ::AST::Crate::Type::RustLib;
}
+ else if( strcmp(type_str, "bin") == 0 ) {
+ this->crate_type = ::AST::Crate::Type::Executable;
+ }
else {
::std::cerr << "Unknown value for --crate-type" << ::std::endl;
exit(1);