Skip to content

Commit

Permalink
Make cosmocc 100x faster on MacOS
Browse files Browse the repository at this point in the history
This change upgrades to superconfigure z0.0.23 which fixes an issue
where the compiler had harmless /home/... paths baked-in, which are
normally only present in the build environment, and usually skipped
over. Sadly on MacOS calling fstatat() on these paths would lead to
cloud file system ops that caused system calls to take a long time.
  • Loading branch information
jart committed Nov 29, 2023
1 parent 4427581 commit 547b904
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tool/cosmocc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ statements instead, so that Cosmopolitan Libc's system constants will
work as expected. Our modifications to GNU GCC are published under the
ISC license at <https://github.com/ahgamut/gcc/tree/portcosmo-11.2>. The
binaries you see here were first published at
<https://github.com/ahgamut/superconfigure/releases/tag/z0.0.23> which
<https://github.com/ahgamut/superconfigure/releases/tag/z0.0.24> which
is regularly updated.
## Legal
Expand Down
4 changes: 2 additions & 2 deletions tool/cosmocc/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ done
OLD=$PWD
cd "$OUTDIR/"
if [ ! -x bin/x86_64-linux-cosmo-gcc ]; then
wget https://github.com/ahgamut/superconfigure/releases/download/z0.0.23/aarch64-gcc.zip
wget https://github.com/ahgamut/superconfigure/releases/download/z0.0.24/aarch64-gcc.zip
unzip aarch64-gcc.zip
rm -f aarch64-gcc.zip
wget https://github.com/ahgamut/superconfigure/releases/download/z0.0.23/x86_64-gcc.zip
wget https://github.com/ahgamut/superconfigure/releases/download/z0.0.24/x86_64-gcc.zip
unzip x86_64-gcc.zip
rm -f x86_64-gcc.zip
fi
Expand Down

0 comments on commit 547b904

Please sign in to comment.