diff --git a/defs/gmake.mk b/defs/gmake.mk index 929238af7b..f7260d0b47 100644 --- a/defs/gmake.mk +++ b/defs/gmake.mk @@ -11,7 +11,10 @@ override ACTIONS_GROUP = @echo "\#\#[group]$(patsubst yes-%,%,$@)" override ACTIONS_ENDGROUP = @echo "\#\#[endgroup]" endif -ifneq ($(filter %darwin%,$(arch)),) +ifneq ($(filter darwin%,$(target_os)),) +# Remove debug option not to generate thousands of .dSYM +MJIT_DEBUGFLAGS := $(filter-out -g%,$(MJIT_DEBUGFLAGS)) + INSTRUBY_ENV += SDKROOT=/ endif INSTRUBY_ARGS += --gnumake