Building about
Table of Contents
Cosmopolitan APE
Downloads https://cosmo.zip/pub/cosmocc/cosmocc.zip into .cosmocc/ (gitignored
via allow-list — the directory is simply not tracked):
make ape ./about.com
Toolchain docs: https://justine.lol/cosmopolitan/
WSL note
WSL registers a WSLInterop binfmt that sends MZ headers to Windows. Cosmopolitan
APE binaries also start with MZ, so the toolchain can mis-detect WIN32. Before
make ape inside WSL:
sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop' make ape COSMOCC_FLAGS=-m64
CI builds APE on Ubuntu runners (not WSL), where this is not an issue.