Unbloat build config

- 10.5% reduction of o//depend dependency graph
- 8.8% reduction in latency of make command
- Fix issue with temporary file cleanup

There's a new -w option in compile.com that turns off the recent
Landlock output path workaround for "good commands" which do not
unlink() the output file like GNU tooling does.

Our new GNU Make unveil sandboxing appears to have zero overhead
in the grand scheme of things. Full builds are pretty fast since
the only thing that's actually slowed us down is probably libcxx

    make -j16 MODE=rel
    RL: took 85,732,063µs wall time
    RL: ballooned to 323,612kb in size
    RL: needed 828,560,521µs cpu (11% kernel)
    RL: caused 39,080,670 page faults (99% memcpy)
    RL: 350,073 context switches (72% consensual)
    RL: performed 0 reads and 11,494,960 write i/o operations

pledge() and unveil() no longer consider ENOSYS to be an error.
These functions have also been added to Python's cosmo module.

This change also removes some WIN32 APIs and System Five magnums
which we're not using and it's doubtful anyone else would be too
This commit is contained in:
Justine Tunney 2022-08-10 01:32:17 -07:00
parent 133c693650
commit ae5d06dc53
1423 changed files with 2213 additions and 5560 deletions

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlQueueApcWow64Thread

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64CallFunction64

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64EnableFsRedirection

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64EnableFsRedirectionEx

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64GetCpuAreaInfo

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64GetCurrentCpuArea

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64GetCurrentMachine

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64GetEquivalentMachineCHPE

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64GetProcessMachines

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64GetSharedInfoProcess

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64GetThreadContext

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64GetThreadSelectorEntry

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64IsWowGuestMachineSupported

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64LogMessageInEventLogger

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64PopAllCrossProcessWork

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64PopCrossProcessWork

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64PushCrossProcessWork

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64SetThreadContext

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlWow64SuspendThread

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlpQueryProcessDebugInformationFromWow64