aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-04-15 21:57:26 -0400
committerGitHub <noreply@github.com>2018-04-15 21:57:26 -0400
commit88724217dd1e1fe4b20fed27c8a662b66df55088 (patch)
treeb8f4302f43bfc367736abc8be5820e9e084318fd /src/main.cpp
parentb9360640cefd1aa30dedf71a0c6b7bddc51a6ae3 (diff)
parent1bc140964fb394819908d267561103b6c7e5036c (diff)
downloadzig-88724217dd1e1fe4b20fed27c8a662b66df55088.tar.gz
zig-88724217dd1e1fe4b20fed27c8a662b66df55088.zip
Merge pull request #925 from alexnask/release_small
Added ReleaseSmall 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 35c7462f4b..3398fd1dea 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -43,6 +43,7 @@ static int usage(const char *arg0) {
" --pkg-end pop current pkg\n"
" --release-fast build with optimizations on and safety off\n"
" --release-safe build with optimizations on and safety on\n"
+ " --release-small build with size optimizations on and safety off\n"
" --static output will be statically linked\n"
" --strip exclude debug symbols\n"
" --target-arch [name] specify target architecture\n"
@@ -482,6 +483,8 @@ int main(int argc, char **argv) {
build_mode = BuildModeFastRelease;
} else if (strcmp(arg, "--release-safe") == 0) {
build_mode = BuildModeSafeRelease;
+ } else if (strcmp(arg, "--release-small") == 0) {
+ build_mode = BuildModeSmallRelease;
} else if (strcmp(arg, "--strip") == 0) {
strip = true;
} else if (strcmp(arg, "--static") == 0) {