diff --git a/Makefile.pc b/Makefile.pc index c148eb8..43c50df 100644 --- a/Makefile.pc +++ b/Makefile.pc @@ -1,7 +1,14 @@ +HOST_OS := $(shell uname -s) + +ifeq ($(strip $(HOST_OS)),Darwin) +BIN2S_FLAGS := --apple-llvm +endif + + # canned command sequence for binary data #--------------------------------------------------------------------------------- define bin2o - bin2s $< | $(AS) -o $(@) + bin2s $(BIN2S_FLAGS) $< | $(AS) -o $(@) echo "extern const u8" `(echo $( `(echo $(> `(echo $(> `(echo $( #include #include +#ifndef __APPLE__ #include +#endif #include #ifdef SWITCH #include