Re:Tiniest x86-64-Linux emulator
by yjftsjthsd-h on Saturday November 19, 2022 @08:09PM
(#33676981)
That's beautifully worked.
What's the double slash for?
[ Parent
| on HN ]
Re:Tiniest x86-64-Linux emulator
by paulclinger on Saturday November 19, 2022 @08:43PM
(#33677190)
You can use it to configure the build mode: `build/bootstrap/make.com -j8 MODE=rel o/rel/blink/blink`; no MODE will build a default config. This is used across all cosmopolitan projects; for example, this is for redbean: https://redbean.dev/#source.
Re:Tiniest x86-64-Linux emulator
by yjftsjthsd-h on Saturday November 19, 2022 @09:02PM
(#33677320)
I'm not following. Is
o//blink/blink
different from o/blink/blink
?The MODE variable in the Makefile is undefined by default so "o/$(MODE)/" becomes "o//"
There are specific comments already, but multiple successive slashes are treated as a single slash, in every case except when a path begins with exactly two slashes, in which case it's implementation dependent.
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1...