aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-12-26 21:44:08 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-12-26 21:44:08 -0500
commit6bfaf262d5a1d18482a813c7022ffb03a18f52a8 (patch)
tree7f432e8f386aed17df3f1bccdff34ec58b3ff2af /src/main.cpp
parent8b716f941dbd43936a994a008aec9cd21d0b08f2 (diff)
parent08dd1b553b37de24eaf24a37558b0f9993d4ca42 (diff)
downloadzig-6bfaf262d5a1d18482a813c7022ffb03a18f52a8.tar.gz
zig-6bfaf262d5a1d18482a813c7022ffb03a18f52a8.zip
Merge branch 'master' into llvm6
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 60d2750bde..66ffbbde82 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -266,6 +266,11 @@ static void add_package(CodeGen *g, CliPkg *cli_pkg, PackageTableEntry *pkg) {
}
int main(int argc, char **argv) {
+ if (argc == 2 && strcmp(argv[1], "BUILD_INFO") == 0) {
+ printf("%s\n%s\n", ZIG_CMAKE_BINARY_DIR, ZIG_CXX_COMPILER);
+ return 0;
+ }
+
os_init();
char *arg0 = argv[0];