aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-04-04 11:57:28 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-04-04 11:57:28 -0400
commitd73808f3ff7d36b32d53cc38cf9a5b29b1ea57d4 (patch)
tree37127821805144c8c7e949c4fcbd3b827eca50bf /src/main.cpp
parente89c42655cf9851cdf02065bc75cda0e27884966 (diff)
downloadzig-d73808f3ff7d36b32d53cc38cf9a5b29b1ea57d4.tar.gz
zig-d73808f3ff7d36b32d53cc38cf9a5b29b1ea57d4.zip
remove `zig BUILD_INFO` hack
Rather than stuffing configuration information into the Zig binary, the build script reads it from config.h. This solves a problem for package maintainers and improves the use case of deterministic builds. closes #3758
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 4d2775d75a..17a1c2bc53 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -260,18 +260,6 @@ static int main0(int argc, char **argv) {
char *arg0 = argv[0];
Error err;
- if (argc == 2 && strcmp(argv[1], "BUILD_INFO") == 0) {
- printf("%s\n%s\n%s\n%s\n%s\n%s\n%s\n",
- ZIG_CMAKE_BINARY_DIR,
- ZIG_CXX_COMPILER,
- ZIG_LLVM_CONFIG_EXE,
- ZIG_LLD_INCLUDE_PATH,
- ZIG_LLD_LIBRARIES,
- ZIG_CLANG_LIBRARIES,
- ZIG_DIA_GUIDS_LIB);
- return 0;
- }
-
if (argc >= 2 && (strcmp(argv[1], "clang") == 0 ||
strcmp(argv[1], "-cc1") == 0 || strcmp(argv[1], "-cc1as") == 0))
{