From 6fece14cfbb852c108c2094ae0879da76f2f445e Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 26 Dec 2017 19:44:08 -0500 Subject: self-hosted: build against zig_llvm and embedded LLD Now the self-hosted compiler re-uses the same C++ code for interfacing with LLVM as the C++ code. It also links against the same LLD library files. --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.cpp') 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]; -- cgit v1.2.3