diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-08-18 15:32:42 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-08-18 15:32:42 -0700 |
| commit | 1de2c647df4758e4250def78068f7e61e638c599 (patch) | |
| tree | 22f5724a21a0a153648b9fcb00b6fd14a4ec32cb /src/main.cpp | |
| parent | 2139697ce548db8a80cf2999a8196836f2e39aef (diff) | |
| parent | 15bcfcd36865fca75b93dc6ce52c904292b62a81 (diff) | |
| download | zig-1de2c647df4758e4250def78068f7e61e638c599.tar.gz zig-1de2c647df4758e4250def78068f7e61e638c599.zip | |
Merge remote-tracking branch 'origin/master' into llvm11
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 6d5f1f3f76..e2f6a82a12 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -38,6 +38,7 @@ static int print_full_usage(const char *arg0, FILE *file, int return_code) { " builtin show the source code of @import(\"builtin\")\n" " cc use Zig as a drop-in C compiler\n" " c++ use Zig as a drop-in C++ compiler\n" + " env print lib path, std path, compiler id and version\n" " fmt parse files and render in canonical zig format\n" " id print the base64-encoded compiler id\n" " init-exe initialize a `zig build` application in the cwd\n" @@ -582,6 +583,8 @@ static int main0(int argc, char **argv) { return (term.how == TerminationIdClean) ? term.code : -1; } else if (argc >= 2 && strcmp(argv[1], "fmt") == 0) { return stage2_fmt(argc, argv); + } else if (argc >= 2 && strcmp(argv[1], "env") == 0) { + return stage2_env(argc, argv); } else if (argc >= 2 && (strcmp(argv[1], "cc") == 0 || strcmp(argv[1], "c++") == 0)) { emit_h = false; strip = true; |
