diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-05-18 16:00:56 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-05-18 16:00:56 +0800 |
commit | ce2ad230390cb1ea23aaa33a206909bc11523e1d (patch) | |
tree | 3cdbefc319abe48b030b7cfe0fa6479db04d15b4 /src | |
parent | acf5e74ebb31aa26ea94ca5f0e636573794e6753 (diff) | |
download | mrust-ce2ad230390cb1ea23aaa33a206909bc11523e1d.tar.gz |
main - dylib crate type on command line
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 3 |
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; } |