mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-07 11:48:30 +00:00
Make build hermetic without shell scripts
- Fix some minor issues in ar.com - Have execve() look for `ape` command - Rewrite NT paths using /c/ rather /??/c:/ - Replace broken GCC symlinks with .sym files - Rewrite $PATH environment variables on startup - Make $(APE_NO_MODIFY_SELF) the default bootloader - Add all build command dependencies to build/bootstrap - Get the repository mostly building from source on non-Linux
This commit is contained in:
parent
d44ff6ce1f
commit
d230a01222
160 changed files with 2754 additions and 1342 deletions
5
third_party/chibicc/chibicc.c
vendored
5
third_party/chibicc/chibicc.c
vendored
|
@ -80,7 +80,7 @@ static void chibicc_usage(int status) {
|
|||
char *p;
|
||||
size_t n;
|
||||
p = xslurp("/zip/third_party/chibicc/help.txt", &n);
|
||||
xwrite(1, p, n);
|
||||
__paginate(1, p);
|
||||
_Exit(status);
|
||||
}
|
||||
|
||||
|
@ -447,7 +447,8 @@ static bool run_subprocess(char **argv) {
|
|||
_Exit(1);
|
||||
}
|
||||
// Wait for the child process to finish.
|
||||
do rc = wait(&ws);
|
||||
do
|
||||
rc = wait(&ws);
|
||||
while (rc == -1 && errno == EINTR);
|
||||
return WIFEXITED(ws) && WEXITSTATUS(ws) == 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue