diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-04-04 11:57:28 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-04-04 11:57:28 -0400 |
| commit | d73808f3ff7d36b32d53cc38cf9a5b29b1ea57d4 (patch) | |
| tree | 37127821805144c8c7e949c4fcbd3b827eca50bf /src/main.cpp | |
| parent | e89c42655cf9851cdf02065bc75cda0e27884966 (diff) | |
| download | zig-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.cpp | 12 |
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)) { |
