fix: make hosted mode work on macos again

When ditherpunk flag is enabled, graphics-server cannot start.
I suspect macOS doesn't tranfer thread-local variables when a new one
is spawned, and this makes xous-names, logs crash.

This commit adds a compile setting that will bypass ditherpunk thread
settings on macOS as well, allowing developers who happen to run this OS
to develop and prototype for betrusted again.
This commit is contained in:
Gianguido Sorà 2022-10-19 14:20:12 +02:00
parent df17ed0f21
commit 8eab76de33

View file

@ -93,7 +93,7 @@ fn map_fonts() -> MemoryRange {
fontregion
}
fn main () -> ! {
#[cfg(not(feature="ditherpunk"))]
#[cfg(any(not(feature = "ditherpunk"), target_os = "macos"))]
wrapped_main();
#[cfg(feature="ditherpunk")]