aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.c
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-11-13 14:30:21 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-11-14 02:17:51 -0500
commitf8b38a174f0c4a843688fe8adac09dc4f66cd585 (patch)
tree646d6157394480effbc44ef71717636a1511df71 /bootstrap.c
parent569182dbb259b2b5cfb457e798407d8ec2eacc2d (diff)
downloadzig-f8b38a174f0c4a843688fe8adac09dc4f66cd585.tar.gz
zig-f8b38a174f0c4a843688fe8adac09dc4f66cd585.zip
adjust building from source without LLVM process
The idea here is that the zig2 executable is perhaps the more useful deliverable until we implement our own optimization passes. This will allow system packages to provide Zig, and use it to compile Zig projects, all without LLVM!
Diffstat (limited to 'bootstrap.c')
-rw-r--r--bootstrap.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/bootstrap.c b/bootstrap.c
index 35ad33d266..f083c1cc1c 100644
--- a/bootstrap.c
+++ b/bootstrap.c
@@ -42,11 +42,6 @@ static void run(char **argv) {
if (WEXITSTATUS(status) != 0)
panic("child process failed");
}
-
-static void run_execv(char **argv) {
- if (execv(argv[0], argv) == -1 && errno == ENOENT) return;
- perror("execv failed");
-}
#endif
static void print_and_run(const char **argv) {
@@ -87,9 +82,6 @@ static const char *get_host_triple(void) {
}
int main(int argc, char **argv) {
- argv[0] = "./zig2";
- run_execv(argv);
-
const char *cc = get_c_compiler();
const char *host_triple = get_host_triple();
@@ -188,7 +180,4 @@ int main(int argc, char **argv) {
};
print_and_run(child_argv);
}
-
- run_execv(argv);
- panic("build script failed to create valid zig2 executable");
}