mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
mac: ignore SDKROOT at installation
This commit is contained in:
parent
0a93a3f4c6
commit
68a6f6c4ab
2 changed files with 5 additions and 1 deletions
|
@ -180,7 +180,7 @@ EXTMK_ARGS = $(SCRIPT_ARGS) --extension $(EXTS) --extstatic $(EXTSTATIC) \
|
|||
--make-flags="V=$(V) MINIRUBY='$(MINIRUBY)'" \
|
||||
--gnumake=$(gnumake) --extflags="$(EXTLDFLAGS)" \
|
||||
--
|
||||
INSTRUBY = $(SUDO) $(RUNRUBY) -r./$(arch)-fake $(tooldir)/rbinstall.rb
|
||||
INSTRUBY = $(SUDO) $(INSTRUBY_ENV) $(RUNRUBY) -r./$(arch)-fake $(tooldir)/rbinstall.rb
|
||||
INSTRUBY_ARGS = $(SCRIPT_ARGS) \
|
||||
--data-mode=$(INSTALL_DATA_MODE) \
|
||||
--prog-mode=$(INSTALL_PROG_MODE) \
|
||||
|
|
|
@ -6,6 +6,10 @@ override mflags := $(filter-out -j%,$(MFLAGS))
|
|||
MSPECOPT += $(if $(filter -j%,$(MFLAGS)),-j)
|
||||
nproc = $(subst -j,,$(filter -j%,$(MFLAGS)))
|
||||
|
||||
ifneq ($(filter %darwin%,$(arch)),)
|
||||
INSTRUBY_ENV += SDKROOT=/
|
||||
endif
|
||||
|
||||
CHECK_TARGETS := great exam love check test check% test% btest%
|
||||
# expand test targets, and those dependents
|
||||
TEST_TARGETS := $(filter $(CHECK_TARGETS),$(MAKECMDGOALS))
|
||||
|
|
Loading…
Reference in a new issue