These produce Mach-o executables for Mac OS X on Intel or PowerPC
processors. Our code generator for PowerPC (mach/powerpc) still has
bugs. Some examples seem to run, but startrek crashes. Our code
generator for Intel (mach/i386) is better.
There is a problem with job control. If you run paranoia or startrek,
then suspend the job (^Z) and resume it ('fg' in bash), then read(2)
might fail with EINTR.
The larger files in this commit are
- plat/osx/cvmach/cvmach.c
- plat/osx/libsys/brk.c
- plat/osx386/libsys/sigaction.s
- plat/osxppc/libsys/sigaction.s
24 lines
357 B
Lua
24 lines
357 B
Lua
include("plat/build.lua")
|
|
|
|
ackfile {
|
|
name = "boot",
|
|
srcs = { "./boot.s" },
|
|
vars = { plat = "osx386" }
|
|
}
|
|
|
|
build_plat_libs {
|
|
name = "libs",
|
|
arch = "i386",
|
|
plat = "osx386",
|
|
}
|
|
|
|
installable {
|
|
name = "pkg",
|
|
map = {
|
|
"+tools",
|
|
"+libs",
|
|
"./include+pkg",
|
|
["$(PLATIND)/osx386/boot.o"] = "+boot",
|
|
["$(PLATIND)/osx386/libsys.a"] = "./libsys+lib",
|
|
}
|
|
}
|