summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2019-05-18 16:00:56 +0800
committerJohn Hodge <tpg@ucc.asn.au>2019-05-18 16:00:56 +0800
commitce2ad230390cb1ea23aaa33a206909bc11523e1d (patch)
tree3cdbefc319abe48b030b7cfe0fa6479db04d15b4 /src
parentacf5e74ebb31aa26ea94ca5f0e636573794e6753 (diff)
downloadmrust-ce2ad230390cb1ea23aaa33a206909bc11523e1d.tar.gz
main - dylib crate type on command line
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 1fea95ff..5ffc195a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1046,6 +1046,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, "dylib") == 0 ) {
+ this->crate_type = ::AST::Crate::Type::RustDylib;
+ }
else if( strcmp(type_str, "bin") == 0 ) {
this->crate_type = ::AST::Crate::Type::Executable;
}