Closed Klowner closed 7 years ago
Yeah muslc not providing define is annoying (their justification doesn't consider cross platform projects at all). Solution is just define BX_CRT_MUSL
from project file...
With GENie it would be something like this:
defines {
"BX_CRT_MUSL=1",
}
I wouldn't even be submitting this bug if I didn't see you were trying to account for musl libc runtimes in your
platform.h
withBX_CRT_MUSL
, but due to musl not exposing any sort of identifying#defines
, I'm not quite sure how to deal with this. Simply definingBX_CRT_MUSL=1
in anelse
clause seems less than optimal.Maybe my best solution is just to ditch my Alpine Linux / musl libc test pipeline for something more sensible?
This "works" in
bx/include/platform.h