mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 19:43:32 +00:00
23d333c090
This change includes many bug fixes, for the NT polyfills, strings, memory, boot, and math libraries which were discovered by adding more tools for recreational programming, such as PC emulation. Lemon has also been vendored because it works so well at parsing languages.
23 lines
394 B
Bash
Executable file
23 lines
394 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# SYNOPSIS
|
|
#
|
|
# gcc -g0 -Os -wrapper build/realify.sh -ffixed-r{8,9,1{0,1,2,4,5}}
|
|
#
|
|
# OVERVIEW
|
|
#
|
|
# Reconfigures x86_64 compiler to emit 16-bit PC boot code.
|
|
|
|
if [ "${1##*/}" = as ]; then
|
|
for x; do
|
|
if [ "${x##*.}" = s ]; then
|
|
{
|
|
printf "\t.code16gcc"
|
|
sed -f build/realify.sed "$x"
|
|
} >"$x".tmp
|
|
mv -f "$x".tmp "$x"
|
|
fi
|
|
done
|
|
fi
|
|
|
|
exec "$@"
|