diff options
| author | Alexandros Naskos <alex_naskos@hotmail.com> | 2018-04-16 03:26:10 +0300 |
|---|---|---|
| committer | Alexandros Naskos <alex_naskos@hotmail.com> | 2018-04-16 03:26:10 +0300 |
| commit | 253ecd5c11747f49575b8425a506c2fecfe26ee2 (patch) | |
| tree | 4f8bb099e72c9f246278bf8cef827607955404e7 /src/main.cpp | |
| parent | b9360640cefd1aa30dedf71a0c6b7bddc51a6ae3 (diff) | |
| download | zig-253ecd5c11747f49575b8425a506c2fecfe26ee2.tar.gz zig-253ecd5c11747f49575b8425a506c2fecfe26ee2.zip | |
Added ReleaseSmall mode
Diffstat (limited to 'src/main.cpp')
| -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 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) { |
